Browse Source

Merge branch 'jk/maint-push-tracking-wo-remote'

* jk/maint-push-tracking-wo-remote:
  push: fix segfault for odd config
maint
Junio C Hamano 15 years ago
parent
commit
796a01c41c
  1. 2
      builtin-push.c

2
builtin-push.c

@ -68,7 +68,7 @@ static void setup_push_tracking(void) @@ -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)

Loading…
Cancel
Save