Skip to content

Commit

Permalink
Merge branch 'jk/maint-push-tracking-wo-remote' into maint
Browse files Browse the repository at this point in the history
* jk/maint-push-tracking-wo-remote:
  push: fix segfault for odd config
  • Loading branch information
Junio C Hamano committed Mar 8, 2010
2 parents 2dd96ea + db03b55 commit 57c118c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static void setup_push_tracking(void)
struct branch *branch = branch_get(NULL);
if (!branch)
die("You are not currently on a branch.");
if (!branch->merge_nr)
if (!branch->merge_nr || !branch->merge)
die("The current branch %s is not tracking anything.",
branch->name);
if (branch->merge_nr != 1)
Expand Down

0 comments on commit 57c118c

Please sign in to comment.