From: Junio C Hamano Date: Thu, 5 Jul 2012 06:40:11 +0000 (-0700) Subject: Merge branch 'hv/remote-end-hung-up' X-Git-Tag: v1.7.12-rc0~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=348c44e78eb079fa97a575f8fb8c1fcac747efe5;p=git.git Merge branch 'hv/remote-end-hung-up' When we get disconnected while expecting a response from the remote side because authentication failed, we issued an error message "The remote side hung up unexpectedly." Give hint that it may be a permission problem in the message when we can reasonably suspect it. * hv/remote-end-hung-up: remove the impression of unexpectedness when access is denied --- 348c44e78eb079fa97a575f8fb8c1fcac747efe5 diff --cc t/t5512-ls-remote.sh index 6764d511c,2ab66d6e3..d16e5d384 --- a/t/t5512-ls-remote.sh +++ b/t/t5512-ls-remote.sh @@@ -82,22 -99,21 +82,20 @@@ test_expect_success 'use branch.. git ls-remote 2>actual_err >actual && test_cmp exp_err actual_err && test_cmp exp actual - ' -cat >exp <exp <<-\EOF && + fatal: '\''refs*master'\'' does not appear to be a git repository - fatal: The remote end hung up unexpectedly ++ fatal: Could not read from remote repository. ++ ++ Please make sure you have the correct access rights ++ and the repository exists. + EOF # - # Do not expect "git ls-remote " to work; ls-remote, correctly, - # confuses for . Although ugly, this behaviour is akin - # to the confusion of refspecs for remotes by git-fetch and git-push, - # eg: - # - # $ git fetch branch - # - + # Do not expect "git ls-remote " to work; ls-remote needs + # if you want to feed , just like you cannot say + # fetch . # We could just as easily have used "master"; the "*" emphasizes its # role as a pattern. test_must_fail git ls-remote refs*master >actual 2>&1 &&