]> git.ipfire.org Git - thirdparty/git.git/commit - GIT-VERSION-GEN
GIT-VERSION-GEN: mark the version 'dirty' only if there are modified files
authorJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2008 20:31:27 +0000 (13:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2008 20:31:27 +0000 (13:31 -0700)
commitb13d44093bac2eb75f37be01f0e369290211472c
treef175f8bf3937eae7d43678aaff772d11afa9d60c
parentc94c8e5ff63728a60494cbbcb28d5045584a997b
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>
GIT-VERSION-GEN