Document git read-tree --trivial
[gitweb.git] / git-clone.sh
index 5bfd8d1556bb7d0da0beaf3685b2350af20e1e15..3a410624d374e9d02b305a25469176e4d4e725e6 100755 (executable)
@@ -20,7 +20,7 @@ usage() {
 get_repo_base() {
        (
                cd "`/bin/pwd`" &&
-               cd "$1" &&
+               cd "$1" || cd "$1.git" &&
                {
                        cd .git
                        pwd