@matheusbsbs / matheus-bagliano / commits / 223fa32784
Fork 0

Fix git-clone buglet for remote case.

c2f599e09fd0496413d1744b5b89b9b5c223555d introduced a buglet while cloning from a remote URL; we forgot to squelch the unnecessary error message when we try to cd to the given "remote" name, in order to see if it is a local directory. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed May 14, 2007 at 14:24 UTC 223fa32784c79bdae7e68266511f9b5e0d65d03e
1 file changed +2 -2
git-clone.sh
+2 -2
@@ -22,10 +22,10 @@ get_repo_base() {
22 cd "`/bin/pwd`" &&
23 cd "$1" &&
24 {
25 - cd .git 2>/dev/null
25 + cd .git
26 pwd
27 }
28 - )
28 + ) 2>/dev/null
29 }
30
31 if [ -n "$GIT_SSL_NO_VERIFY" ]; then