]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5500-fetch-pack.sh
fetch-pack: fix object_id of exact sha1
authorGabriel Souza Franco <gabrielfrancosouza@gmail.com>
Tue, 1 Mar 2016 02:12:56 +0000 (23:12 -0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Mar 2016 19:19:19 +0000 (11:19 -0800)
commit4a8d202c4e95472c7dc7444fd314037090cf08a1
treee233328f2e547968a4a51ad5a138a94532252620
parentf02fbc4f9433937ee0463d0342d6d7d97e1f6f1e
fetch-pack: fix object_id of exact sha1

Commit 58f2ed0 (remote-curl: pass ref SHA-1 to fetch-pack as well,
2013-12-05) added support for specifying a SHA-1 as well as a ref name.
Add support for specifying just a SHA-1 and set the ref name to the same
value in this case.

Signed-off-by: Gabriel Souza Franco <gabrielfrancosouza@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch-pack.c
t/t5500-fetch-pack.sh