]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/describe.c
describe: Refresh the index when run with --dirty
authorAllan Caffee <allan.caffee@gmail.com>
Mon, 1 Aug 2011 01:52:41 +0000 (21:52 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Aug 2011 20:03:35 +0000 (13:03 -0700)
commitbb571486ae93d02746c4bcc8032bde306f6d399a
tree86990223d8d82b7b09ba05f92475b70a3e41a19a
parent4e2e6ce45047fe2713546127f3d1ded576e1bf7e
describe: Refresh the index when run with --dirty

When running git describe --dirty the index should be refreshed.  Previously
the cached index would cause describe to think that the index was dirty when,
in reality, it was just stale.

The issue was exposed by python setuptools which hardlinks files into another
directory when building a distribution.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/describe.c