diff options
author | Junio C Hamano <junkio@cox.net> | 2006-07-10 12:34:34 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-14 08:10:21 +0200 |
commit | 57a39690b936c003662b6710241732b980e58790 (patch) | |
tree | 969d9d54900dc423f7ed65854d60dec7d687f9de /git-clone.sh | |
parent | gitweb.css: Use monospace fonts for commits and tree-diff. (diff) | |
download | git-57a39690b936c003662b6710241732b980e58790.tar.xz git-57a39690b936c003662b6710241732b980e58790.zip |
fetch/clone: check return status from ls-remote
Some callers of ls-remote did not check its return status.
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-x | git-clone.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-clone.sh b/git-clone.sh index 0368803883..a92b22a13d 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -266,7 +266,7 @@ yes,yes) echo "$repo/objects" >> "$GIT_DIR/objects/info/alternates" ;; esac - git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" + git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1 ;; *) case "$repo" in @@ -296,7 +296,7 @@ yes,yes) done rm -f "$GIT_DIR/TMP_ALT" fi - git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" + git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1 ;; http://*) if test -z "@@NO_CURL@@" |