summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-08 00:36:01 -0800
committerJunio C Hamano <gitster@pobox.com>2010-03-08 00:36:01 -0800
commit57c118c268a01b00954916e344f2eb082eafaaaf (patch)
tree52a827f54947269dc82376f3e021ef0136bed85d
parent2dd96ea21fb964a6890549c24bdeba42a759f401 (diff)
parentdb03b55781f23a9276234faf9a21922ff8c5678d (diff)
downloadgit-57c118c268a01b00954916e344f2eb082eafaaaf.tar.gz
Merge branch 'jk/maint-push-tracking-wo-remote' into maint
* jk/maint-push-tracking-wo-remote: push: fix segfault for odd config
-rw-r--r--builtin-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-push.c b/builtin-push.c
index 5633f0ade4..f7bc2b292f 100644
--- a/builtin-push.c
+++ b/builtin-push.c
@@ -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)