author | Junio C Hamano <gitster@pobox.com> | |
Fri, 8 Aug 2008 20:31:27 +0000 (13:31 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 8 Aug 2008 20:31:27 +0000 (13:31 -0700) | ||
commit | b13d44093bac2eb75f37be01f0e369290211472c | |
tree | f175f8bf3937eae7d43678aaff772d11afa9d60c | tree | snapshot |
parent | c94c8e5ff63728a60494cbbcb28d5045584a997b | commit | diff |
GIT-VERSION-GEN: mark the version 'dirty' only if there are modified files
We used to mark the version string with '-dirty' if the cache was not up
to date, but the only thing we want to know is if the binaries are built
from modified source. Refresh the cache to avoid false dirtyness.
Christian Jaeger noticed this issue while building under fakeroot
environment (without -u) that lies about the file ownership data.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We used to mark the version string with '-dirty' if the cache was not up
to date, but the only thing we want to know is if the binaries are built
from modified source. Refresh the cache to avoid false dirtyness.
Christian Jaeger noticed this issue while building under fakeroot
environment (without -u) that lies about the file ownership data.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
GIT-VERSION-GEN | diff | blob | history |