clone: the given repository dir should be relative to $PWD
[gitweb.git] / git-clone.sh
index 3998c55cef3658eda18817d513a5bd5003c30e89..bf54a11508b0d35340b6a2c4a677a38a38e37aed 100755 (executable)
@@ -312,7 +312,7 @@ yes,yes)
                fi
                ;;
        *)
-               cd "$D" && case "$upload_pack" in
+               case "$upload_pack" in
                '') git-fetch-pack --all -k $quiet "$repo" ;;
                *) git-fetch-pack --all -k $quiet "$upload_pack" "$repo" ;;
                esac >"$GIT_DIR/CLONE_HEAD" || {