summaryrefslogtreecommitdiff
path: root/t/t1020-subdirectory.sh
diff options
context:
space:
mode:
authorLibravatar Petr Baudis <pasky@suse.cz>2008-08-07 02:06:30 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-08-07 11:39:14 -0700
commitfd35e42683113e367eee0bb8ac956dde3d95edde (patch)
tree30ddedf85f7d3f2f89944e4cebd14111491fc9f2 /t/t1020-subdirectory.sh
parentGIT 1.5.6.5 (diff)
downloadtgif-fd35e42683113e367eee0bb8ac956dde3d95edde.tar.xz
Fail properly when cloning from invalid HTTP URL
Currently, when cloning from invalid HTTP URL, git clone will possibly return curl error, then a confusing message about remote HEAD and then return success and leave an empty repository behind, confusing either the end-user or the automated service calling it (think repo.or.cz). This patch changes the error() calls in get_refs_via_curl() to die()s, akin to the other get_refs_*() functions. Cc: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1020-subdirectory.sh')
0 files changed, 0 insertions, 0 deletions