summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9755afb)
raw | patch | inline | side by side (parent: 9755afb)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Dec 2005 23:58:00 +0000 (15:58 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Dec 2005 23:58:00 +0000 (15:58 -0800) |
When clone-pack has trouble with the remote, it dies unfriendly
"EOF" error message. We cannot tell the reason why it failed
from the local end; it could be that the repository did not
exist, or configured not to serve over git-daemon, or a network
failure. At least, saying clone-pack failed makes it a bit more
meaningful.
I am not convinced yet that removing the newly created directory
is the right thing to do, so this commit leaves the new
directory behind.
Reported by Sam Ravnborg.
Signed-off-by: Junio C Hamano <junkio@cox.net>
"EOF" error message. We cannot tell the reason why it failed
from the local end; it could be that the repository did not
exist, or configured not to serve over git-daemon, or a network
failure. At least, saying clone-pack failed makes it a bit more
meaningful.
I am not convinced yet that removing the newly created directory
is the right thing to do, so this commit leaves the new
directory behind.
Reported by Sam Ravnborg.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-clone.sh | patch | blob | history |
diff --git a/git-clone.sh b/git-clone.sh
index 699205eb6644aeb8668aa56abddf4f00d9af2642..e49028f684ffe2fd50012759f54475f0db7b4d68 100755 (executable)
--- a/git-clone.sh
+++ b/git-clone.sh
cd "$D" && case "$upload_pack" in
'') git-clone-pack $quiet "$repo" ;;
*) git-clone-pack $quiet "$upload_pack" "$repo" ;;
- esac
+ esac || {
+ echo >&2 "clone-pack from '$repo' failed."
+ exit 1
+ }
;;
esac
;;