File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1453,7 +1453,7 @@ receive.denyCurrentBranch::
1453
1453
out of sync with the index and working tree. If set to "warn",
1454
1454
print a warning of such a push to stderr, but allow the push to
1455
1455
proceed. If set to false or "ignore", allow such pushes with no
1456
- message. Defaults to "warn ".
1456
+ message. Defaults to "refuse ".
1457
1457
1458
1458
receive.denyNonFastForwards::
1459
1459
If set to true, git-receive-pack will deny a ref update which is
Original file line number Diff line number Diff line change @@ -250,7 +250,9 @@ __git_refs ()
250
250
refs=" ${cur%/* } "
251
251
;;
252
252
* )
253
- if [ -e " $dir /HEAD" ]; then echo HEAD; fi
253
+ for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
254
+ if [ -e " $dir /$i " ]; then echo $i ; fi
255
+ done
254
256
format=" refname:short"
255
257
refs=" refs/tags refs/heads refs/remotes"
256
258
;;
You can’t perform that action at this time.
0 commit comments