summaryrefslogtreecommitdiff
path: root/t/t7811-grep-open.sh
diff options
context:
space:
mode:
authorLibravatar Ramkumar Ramachandra <artagnon@gmail.com>2013-05-30 00:51:51 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-05-29 15:34:07 -0700
commit0f075b220862e729eb3873a1c1496b923d17c2d4 (patch)
tree90d4ab00ca754ec4108d57e5ddbfde21f1804088 /t/t7811-grep-open.sh
parentpush: fail early with detached HEAD and current (diff)
downloadtgif-0f075b220862e729eb3873a1c1496b923d17c2d4.tar.xz
push: make push.default = current use resolved HEAD
With this change, the output of the push (with push.default set to current) changes subtly from: $ git push ... * [new branch] HEAD -> push-current-head to: $ git push ... * [new branch] push-current-head -> push-current-head This patch was written with a different motivation. There is a problem unique to push.default = current: # on branch push-current-head $ git push # on another terminal $ git checkout master # return to the first terminal # the push tried to push master! This happens because the 'git checkout' on the second terminal races with the 'git push' on the first terminal. Although this patch does not solve the core problem (there is still no guarantee that 'git push' on the first terminal will resolve HEAD before 'git checkout' changes HEAD on the second), it works in practice. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7811-grep-open.sh')
0 files changed, 0 insertions, 0 deletions