Fix git-clone buglet for remote case.

c2f599e09f 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>
This commit is contained in:
Junio C Hamano 2007-05-14 14:24:02 -07:00
parent 4a1bb4c3f8
commit 223fa32784

View File

@ -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