otrx: support for extracting partitions
[openwrt/svn-archive/archive.git] / scripts / getver.sh
index 8bb384bd538fbc4a3a249d666cd8dc216e7fb63d..4643ca63ff0bb43b344fa4f9dfef383567c128ff 100755 (executable)
@@ -17,7 +17,7 @@ try_svn() {
 }
 
 try_git() {
-       [ -d .git ] || return 1
+       [ -e .git ] || return 1
        REV="$(git log | grep -m 1 git-svn-id | awk '{ gsub(/.*@/, "", $0); print $1 }')"
        REV="${REV:+r$REV}"
        [ -n "$REV" ]