Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint-1.8.2' into maint-1.8.3
[gitweb.git]
/
builtin
/
push.c
diff --git
a/builtin/push.c
b/builtin/push.c
index ba2bd56ebc6a35b04b7c1f30b9446572dff0f5cf..2d84d10720fad88becdfe957f3770a2c44ac0a8f 100644
(file)
--- a/
builtin/push.c
+++ b/
builtin/push.c
@@
-199,7
+199,7
@@
static void setup_default_push_refspecs(struct remote *remote)
branch = branch_get(NULL);
if (!branch)
die(_(message_detached_head_die), remote->name);
- add_refspec(
"HEAD"
);
+ add_refspec(
branch->name
);
break;
case PUSH_DEFAULT_NOTHING: