diff options
-rwxr-xr-x | git-clone.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/git-clone.sh b/git-clone.sh index cad5c0c088..70374aaaf0 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -18,7 +18,14 @@ usage() { } get_repo_base() { - (cd "$1" && (cd .git ; pwd)) 2> /dev/null + ( + cd "`/bin/pwd`" && + cd "$1" && + { + cd .git 2>/dev/null + pwd + } + ) } if [ -n "$GIT_SSL_NO_VERIFY" ]; then |