diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/perf/util/PERF-VERSION-GEN | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/PERF-VERSION-GEN b/tools/perf/util/PERF-VERSION-GEN index 49ece7921914..1b32e8c0253f 100755 --- a/tools/perf/util/PERF-VERSION-GEN +++ b/tools/perf/util/PERF-VERSION-GEN | |||
@@ -15,7 +15,7 @@ LF=' | |||
15 | if test -f version | 15 | if test -f version |
16 | then | 16 | then |
17 | VN=$(cat version) || VN="$DEF_VER" | 17 | VN=$(cat version) || VN="$DEF_VER" |
18 | elif test -d .git -o -f .git && | 18 | elif test -d ../../.git -o -f ../../.git && |
19 | VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && | 19 | VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && |
20 | case "$VN" in | 20 | case "$VN" in |
21 | *$LF*) (exit 1) ;; | 21 | *$LF*) (exit 1) ;; |