aboutsummaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-19 23:52:33 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-20 15:07:54 -0700
commit89d844d084f14bc9506f63cd3c9aa44b21b49067 (patch)
tree05a4fb47dff443d0ddefc825c843c11b86d32f4c /git-fetch.sh
parent2a39064c65e70a3e763c4dff5553cd2af3d10211 (diff)
downloadgit-89d844d084f14bc9506f63cd3c9aa44b21b49067.tar.gz
git-89d844d084f14bc9506f63cd3c9aa44b21b49067.tar.xz
Do not give alarming error message from rsync in fetch and clone.
When we check the optional objects/info/alternates file at the remote repository, we forgot to really squelch error message from rsync. Not having that file is not a crime. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 72f17ab6c..822b4cd98 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -193,8 +193,9 @@ do
# Look at objects/info/alternates for rsync -- http will
# support it natively and git native ones will do it on the remote
# end. Not having that file is not a crime.
- rsync -q "$remote/objects/info/alternates" "$GIT_DIR/TMP_ALT" ||
- rm -f "$GIT_DIR/TMP_ALT"
+ rsync -q "$remote/objects/info/alternates" \
+ "$GIT_DIR/TMP_ALT" 2>/dev/null ||
+ rm -f "$GIT_DIR/TMP_ALT"
if test -f "$GIT_DIR/TMP_ALT"
then
resolve_alternates "$remote" <"$GIT_DIR/TMP_ALT" |