summaryrefslogtreecommitdiff
path: root/t/t9118-git-svn-funky-branch-names.sh
diff options
context:
space:
mode:
authorLibravatar Brandon Casey <drafnel@gmail.com>2010-08-25 12:52:55 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-25 14:29:46 -0700
commit6106ce4669051f1f4d3d21a2b22d24747e643147 (patch)
treed66f39fabdb50919dcf2353ba3eb757ec0a3301d /t/t9118-git-svn-funky-branch-names.sh
parentGit 1.7.1 (diff)
downloadtgif-6106ce4669051f1f4d3d21a2b22d24747e643147.tar.xz
t/t5510: demonstrate failure to fetch when current branch has merge ref
When 'git fetch' is supplied just a repository URL (not a remote name), and without a fetch refspec, it should fetch from the remote HEAD branch and update FETCH_HEAD with the fetched ref. Currently, when 'git fetch' is called like this, it fails to retrieve anything, and does not update FETCH_HEAD, if the current checked-out branch has a configured merge ref. i.e. this fetch fails to retrieve anything nor update FETCH_HEAD: git checkout master git config branch.master.merge refs/heads/master git fetch git://git.kernel.org/pub/scm/git/git.git but this one does: git config --unset branch.master.merge git fetch git://git.kernel.org/pub/scm/git/git.git Add a test to demonstrate this flaw. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9118-git-svn-funky-branch-names.sh')
0 files changed, 0 insertions, 0 deletions