Skip to content

Commit

Permalink
Fix git-clone buglet for remote case.
Browse files Browse the repository at this point in the history
c2f599e 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>
  • Loading branch information
Junio C Hamano committed May 14, 2007
1 parent 4a1bb4c commit 223fa32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 223fa32

Please sign in to comment.