Merge branch 'maint' of git://repo.or.cz/git-gui into maint
[gitweb.git] / git-clone.sh
index cad5c0c088fa997c6f8f36c44e8888a5cb19515e..fdd354f2da1978241a3e79a47a067496150cc1bc 100755 (executable)
@@ -18,7 +18,14 @@ usage() {
 }
 
 get_repo_base() {
-       (cd "$1" && (cd .git ; pwd)) 2> /dev/null
+       (
+               cd "`/bin/pwd`" &&
+               cd "$1" &&
+               {
+                       cd .git
+                       pwd
+               }
+       ) 2>/dev/null
 }
 
 if [ -n "$GIT_SSL_NO_VERIFY" ]; then