X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FGetSourceVersion;h=b57a6aa2f3af6652e71f9ba00050685afd3e4349;hb=115494b777b26de383bc6733e23c4efdbc3e4ad0;hp=cbed7daf5b618f1c80c398c9e267a58a1253444f;hpb=6a2e912690ba15ce9cb91ed02e923beba1521275;p=oota-llvm.git diff --git a/utils/GetSourceVersion b/utils/GetSourceVersion index cbed7daf5b6..b57a6aa2f3a 100755 --- a/utils/GetSourceVersion +++ b/utils/GetSourceVersion @@ -16,7 +16,7 @@ fi cd $1 if [ -d .svn ]; then svnversion | sed -e "s#\([0-9]*\)[A-Z]*#\1#" -elif [ -d .git/svn ]; then +elif [ -f .git/svn/.metadata ]; then git svn info | grep 'Revision:' | cut -d: -f2- elif [ -d .git ]; then git log -1 --pretty=format:%H