Skip to content

Commit 796a01c

Browse files
committed
Merge branch 'jk/maint-push-tracking-wo-remote'
* jk/maint-push-tracking-wo-remote: push: fix segfault for odd config
2 parents 512c916 + db03b55 commit 796a01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void setup_push_tracking(void)
6868
struct branch *branch = branch_get(NULL);
6969
if (!branch)
7070
die("You are not currently on a branch.");
71-
if (!branch->merge_nr)
71+
if (!branch->merge_nr || !branch->merge)
7272
die("The current branch %s is not tracking anything.",
7373
branch->name);
7474
if (branch->merge_nr != 1)

0 commit comments

Comments
 (0)