author | Allan Caffee <allan.caffee@gmail.com> | |
Mon, 1 Aug 2011 01:52:41 +0000 (21:52 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 23 Sep 2011 21:28:17 +0000 (14:28 -0700) | ||
commit | 85b3c75f4fd3aa4da976bac702827dc8d7d1bf15 | |
tree | bbe7ffb76e23605b6103637c2dfb7f95c51fafe6 | tree | snapshot |
parent | 84b051462fcaf9892f31f178a47c261ddd5c9695 | commit | diff |
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>
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 | diff | blob | history |