summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 57b7315)
raw | patch | inline | side by side (parent: 57b7315)
author | Nicolas Pitre <nico@cam.org> | |
Mon, 18 Dec 2006 20:16:58 +0000 (15:16 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 18 Dec 2006 23:31:28 +0000 (15:31 -0800) |
The remote server might not want to tell why it doesn't like us for
security reasons, but let's make the client report such error in a bit
less confusing way. The remote failure remains a mystery, but the local
message might be a bit less so.
[jc: with a gentle wording updates from Andy Parkins]
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
security reasons, but let's make the client report such error in a bit
less confusing way. The remote failure remains a mystery, but the local
message might be a bit less so.
[jc: with a gentle wording updates from Andy Parkins]
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh | patch | blob | history | |
git-ls-remote.sh | patch | blob | history | |
pkt-line.c | patch | blob | history |
diff --git a/git-fetch.sh b/git-fetch.sh
index 38101a6ace2331707bb7a424d32b32f3699d3bab..ffbd44f0e1ab841e6f6a38295860220b01bb26ea 100755 (executable)
--- a/git-fetch.sh
+++ b/git-fetch.sh
# Global that is reused later
ls_remote_result=$(git ls-remote $upload_pack "$remote") ||
- die "Cannot find the reflist at $remote"
+ die "Cannot get the repository state from $remote"
append_fetch_head () {
head_="$1"
diff --git a/git-ls-remote.sh b/git-ls-remote.sh
index 0f88953f299c1fd1243c3d5d6ae1e71d56e842a8..03b624ef33dd3690a3cf24b4eaab830e5875789b 100755 (executable)
--- a/git-ls-remote.sh
+++ b/git-ls-remote.sh
do
case "$sha1" in
failed)
- die "Failed to find remote refs"
+ exit 1 ;;
esac
case "$path" in
refs/heads/*)
diff --git a/pkt-line.c b/pkt-line.c
index c1e81f976f26726db2432f72f7356087a6e3a7d8..b4cb7e2756dcc52c17aebf4c0fc6adc7b415ef3c 100644 (file)
--- a/pkt-line.c
+++ b/pkt-line.c
if (ret < 0)
die("read error (%s)", strerror(errno));
if (!ret)
- die("unexpected EOF");
+ die("The remote end hung up unexpectedly");
n += ret;
}
}