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.
1 parent c5b09cf commit e0c91cfCopy full SHA for e0c91cf
builtin/push.c
@@ -205,8 +205,8 @@ static const char *get_upstream_ref(struct branch *branch, const char *remote_na
205
static void setup_default_push_refspecs(struct remote *remote)
206
{
207
struct branch *branch;
208
- int same_remote = remote == remote_get(NULL);
209
const char *dst;
+ int same_remote;
210
211
switch (push_default) {
212
case PUSH_DEFAULT_MATCHING:
@@ -226,6 +226,7 @@ static void setup_default_push_refspecs(struct remote *remote)
226
die(_(message_detached_head_die), remote->name);
227
228
dst = branch->refname;
229
+ same_remote = remote == remote_get(NULL);
230
231
232
default:
0 commit comments