diff --git a/hm/scripts/jlab b/hm/scripts/jlab index 12bb8df..6d7623d 100755 --- a/hm/scripts/jlab +++ b/hm/scripts/jlab @@ -250,7 +250,7 @@ elif sys.argv[1] == "push": bookmark = current_bookmark() if not bookmark: raise RuntimeError("Couldn't find a current branch") - heads = jj.log("heads(@::)") + heads = jj.log("heads(ancestors(@::) ~ empty())") if len(heads) != 1: raise RuntimeError("Multiple heads") # Or none if something goes horribly wrong head = heads[0]