@matheusbsbs / matheus-bagliano / commits / 89d844d084
Fork 0

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>

Junio C Hamano committed Sep 19, 2005 at 23:52 UTC 89d844d084f14bc9506f63cd3c9aa44b21b49067
2 files changed +5 -3
git-clone.sh
+2 -1
@@ -152,7 +152,8 @@ yes,yes)
152 # Look at objects/info/alternates for rsync -- http will
153 # support it natively and git native ones will do it on the
154 # remote end. Not having that file is not a crime.
155 - rsync -q "$repo/objects/info/alternates" "$D/.git/TMP_ALT" ||
155 + rsync -q "$repo/objects/info/alternates" \
156 + "$D/.git/TMP_ALT" 2>/dev/null ||
157 rm -f "$D/.git/TMP_ALT"
158 if test -f "$D/.git/TMP_ALT"
159 then
git-fetch.sh
+3 -2
@@ -193,8 +193,9 @@ do
193 # Look at objects/info/alternates for rsync -- http will
194 # support it natively and git native ones will do it on the remote
195 # end. Not having that file is not a crime.
196 - rsync -q "$remote/objects/info/alternates" "$GIT_DIR/TMP_ALT" ||
197 - rm -f "$GIT_DIR/TMP_ALT"
196 + rsync -q "$remote/objects/info/alternates" \
197 + "$GIT_DIR/TMP_ALT" 2>/dev/null ||
198 + rm -f "$GIT_DIR/TMP_ALT"
199 if test -f "$GIT_DIR/TMP_ALT"
200 then
201 resolve_alternates "$remote" <"$GIT_DIR/TMP_ALT" |