aboutsummaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-05-14 14:24:02 -0700
committerJunio C Hamano <junkio@cox.net>2007-05-14 14:24:02 -0700
commit223fa32784c79bdae7e68266511f9b5e0d65d03e (patch)
tree84c8cf2b0fdd4db4ed2ac596f4fd5ffa7abe8bc1 /git-clone.sh
parent4a1bb4c3f87f355dd52fcd0babcbd005d59d7ed6 (diff)
downloadgit-223fa32784c79bdae7e68266511f9b5e0d65d03e.tar.gz
git-223fa32784c79bdae7e68266511f9b5e0d65d03e.tar.xz
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>
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-xgit-clone.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 70374aaaf..fdd354f2d 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -22,10 +22,10 @@ get_repo_base() {
cd "`/bin/pwd`" &&
cd "$1" &&
{
- cd .git 2>/dev/null
+ cd .git
pwd
}
- )
+ ) 2>/dev/null
}
if [ -n "$GIT_SSL_NO_VERIFY" ]; then