projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f520308
)
GIT-VERSION-GEN: Don't include output of git update-index.
author
Andre Noll
<maan@systemlinux.org>
Wed, 4 Sep 2013 21:53:32 +0000
(21:53 +0000)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 4 Sep 2013 22:22:45 +0000
(22:22 +0000)
GIT-VERSION-GEN calls git update-index which might write something
like "configure.ac: Needs update" to stdout. We don't want this text
to be part of the version string, so make sure we discard the output
of git update-index.
GIT-VERSION-GEN
patch
|
blob
|
history
diff --git
a/GIT-VERSION-GEN
b/GIT-VERSION-GEN
index 32802232244a6a79258f2640e7e0f7e3ddd950a2..df7ed327cb3f9b8f93ec596e629da4c08346e69a 100755
(executable)
--- a/
GIT-VERSION-GEN
+++ b/
GIT-VERSION-GEN
@@
-16,7
+16,7
@@
elif [[ -d .git || -f .git ]] &&
case "$VN" in
*$LF*) (exit 1) ;;
v[0-9]*)
- git update-index -q --refresh
+ git update-index -q --refresh
&>/dev/null
test -z "$(git diff-index --name-only HEAD --)" ||
VN="$VN-dirty" ;;
esac