We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 512c916 + db03b55 commit 796a01cCopy full SHA for 796a01c
builtin-push.c
@@ -68,7 +68,7 @@ static void setup_push_tracking(void)
68
struct branch *branch = branch_get(NULL);
69
if (!branch)
70
die("You are not currently on a branch.");
71
- if (!branch->merge_nr)
+ if (!branch->merge_nr || !branch->merge)
72
die("The current branch %s is not tracking anything.",
73
branch->name);
74
if (branch->merge_nr != 1)
0 commit comments