X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2FPERF-VERSION-GEN;h=1b32e8c0253f3e43dace666c8a7adf6b03a880b3;hb=2190de2f59b3a371f7a5bf8dcc7a0c3f71723679;hp=49ece7921914a3fdc20ea02d56af193ab61a73f9;hpb=815c4163b6c8ebf8152f42b0a5fd015cfdcedc78;p=mv-sheeva.git diff --git a/tools/perf/util/PERF-VERSION-GEN b/tools/perf/util/PERF-VERSION-GEN index 49ece792191..1b32e8c0253 100755 --- a/tools/perf/util/PERF-VERSION-GEN +++ b/tools/perf/util/PERF-VERSION-GEN @@ -15,7 +15,7 @@ LF=' if test -f version then VN=$(cat version) || VN="$DEF_VER" -elif test -d .git -o -f .git && +elif test -d ../../.git -o -f ../../.git && VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && case "$VN" in *$LF*) (exit 1) ;;