Documentation/git-add: clarify -u with path limiting
[gitweb.git] / git-clone.sh
index cad5c0c088fa997c6f8f36c44e8888a5cb19515e..70374aaaf0f766588739053becc36831381d4f35 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 2>/dev/null
+                       pwd
+               }
+       )
 }
 
 if [ -n "$GIT_SSL_NO_VERIFY" ]; then