diff options
author | Junio C Hamano <junkio@cox.net> | 2006-01-16 00:58:45 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-16 00:58:45 -0800 |
commit | 5c7d3c9507f74a6f5c3f44915c42ee9ec22c1211 (patch) | |
tree | c3a79ebaf6f13f05a60b0aac01813842186f350b /GIT-VERSION-GEN | |
parent | 42301e34a2736b091738d4ca6a23fd90bd1f1837 (diff) | |
download | git-5c7d3c9507f74a6f5c3f44915c42ee9ec22c1211.tar.gz git-5c7d3c9507f74a6f5c3f44915c42ee9ec22c1211.tar.xz |
Allow building of RPM from interim snapshot.
By popular demand. If you build and install such binary RPMs,
the version numbering will lose monotonicity, so you may have to
later override downgrade warnings from your packaging manager,
but as long as you are aware of that and know how to deal with it,
there is no reason for us to forbid it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'GIT-VERSION-GEN')
-rwxr-xr-x | GIT-VERSION-GEN | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 73aaff0a2..e3cd9fa09 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -5,7 +5,7 @@ DEF_VER=v1.1.GIT # First try git-describe, then see if there is a version file # (included in release tarballs), then default -VN=$(git-describe --abbrev=4 HEAD 2>/dev/null) || +VN=$(git-describe --abbrev=4 HEAD 2>/dev/null | sed -e 's/-/./g') || VN=$(cat version) || VN="$DEF_VER" |