author | John Ellson <ellson@research.att.com> | |
Fri, 30 Dec 2005 16:23:17 +0000 (11:23 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 6 Jan 2006 05:02:01 +0000 (21:02 -0800) | ||
commit | 026351a03507dc3a2e89e068c01234dc55914df2 | |
tree | 4e1ac5c4269f2e6e568390cc6128a88c2f924cbe | tree | snapshot |
parent | 5df466c507ee2dd81c2e9002c3fedf3536cde0dc | commit | diff |
Make GIT-VERSION-GEN tolerate missing git describe command
I think it is probably a bug that "git non_existent_command"
returns its error message to stdout without an error, where
"git-non_existent_command" behaves differently and does return an
error.
Older versions of git did not implement "git describe" and
GIT-VERSION-GEN produces an empty version string if run on
a system with such a git installed. The consequence
is that "make rpm" fails.
This patch fixes GIT-VERSION-GEN so that it works in the
absence of a working "git describe"
Signed-off-by: John Ellson <ellson@research.att.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
I think it is probably a bug that "git non_existent_command"
returns its error message to stdout without an error, where
"git-non_existent_command" behaves differently and does return an
error.
Older versions of git did not implement "git describe" and
GIT-VERSION-GEN produces an empty version string if run on
a system with such a git installed. The consequence
is that "make rpm" fails.
This patch fixes GIT-VERSION-GEN so that it works in the
absence of a working "git describe"
Signed-off-by: John Ellson <ellson@research.att.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
GIT-VERSION-GEN | diff | blob | history |