summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-04-01 06:15:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-04-02 05:40:10 (GMT)
commit1a51b52422e055e433dec9a496621341d70d38ff (patch)
tree771ce6613ff70e626aeaaaf137ba7a8019b7b679 /Documentation
parent0855331941b723b227e93b33955bbe0b45025659 (diff)
downloadgit-1a51b52422e055e433dec9a496621341d70d38ff.zip
git-1a51b52422e055e433dec9a496621341d70d38ff.tar.gz
git-1a51b52422e055e433dec9a496621341d70d38ff.tar.bz2
push-to-deploy: allow pushing into an unborn branch and updating it
Setting receive.denycurrentbranch to updateinstead and pushing into the current branch, when the working tree and the index is truly clean, is supposed to reset the working tree and the index to match the tree of the pushed commit. This did not work when pushing into an unborn branch. The code that drives push-to-checkout hook needs no change, as the interface is defined so that hook can decide what to do when the push is coming to an unborn branch and take an appropriate action since the beginning. Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions