]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jt/refspec-dwim-precedence-fix'
authorJunio C Hamano <gitster@pobox.com>
Fri, 17 Aug 2018 20:09:55 +0000 (13:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Aug 2018 20:09:55 +0000 (13:09 -0700)
commit72c11b7e62c02d18a51f0bbaa2154ecebf8c74f0
tree3ae354187efd31883707de12020f700e2d128c9e
parent60858f343aa909305c28790c7684bf88905695a2
parent60650a48c0b24ecf64468426ec13b88c07069b28
Merge branch 'jt/refspec-dwim-precedence-fix'

"git fetch $there refs/heads/s" ought to fetch the tip of the
branch 's', but when "refs/heads/refs/heads/s", i.e. a branch whose
name is "refs/heads/s" exists at the same time, fetched that one
instead by mistake.  This has been corrected to honor the usual
disambiguation rules for abbreviated refnames.

* jt/refspec-dwim-precedence-fix:
  remote: make refspec follow the same disambiguation rule as local refs
refs.c
remote.c
t/t5510-fetch.sh