summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2019-10-21 16:00:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-23 03:53:51 (GMT)
commit8a64881b44e03264fb0c3c26fc00a01c12cd67ff (patch)
treea19f33588c0e9ae92b1d1c01c3d490c9d92ffe64 /path.c
parent7cb8c929d76c12750fdece2e5da75d207938d3b9 (diff)
downloadgit-8a64881b44e03264fb0c3c26fc00a01c12cd67ff.zip
git-8a64881b44e03264fb0c3c26fc00a01c12cd67ff.tar.gz
git-8a64881b44e03264fb0c3c26fc00a01c12cd67ff.tar.bz2
path.c: mark 'logs/HEAD' in 'common_list' as file
'logs/HEAD', i.e. HEAD's reflog, is a file, but its entry in 'common_list' has the 'is_dir' bit set. Unset that bit to make it consistent with what 'logs/HEAD' is supposed to be. This doesn't make a difference in behavior: check_common() is the only function that looks at the 'is_dir' bit, and that function either returns 0, or '!exclude', which for 'logs/HEAD' results in 0 as well. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index d10f0e0..7f243f3 100644
--- a/path.c
+++ b/path.c
@@ -113,7 +113,7 @@ static struct common_dir common_list[] = {
{ 0, 1, 0, "info" },
{ 0, 0, 1, "info/sparse-checkout" },
{ 1, 1, 0, "logs" },
- { 1, 1, 1, "logs/HEAD" },
+ { 1, 0, 1, "logs/HEAD" },
{ 0, 1, 1, "logs/refs/bisect" },
{ 0, 1, 1, "logs/refs/rewritten" },
{ 0, 1, 1, "logs/refs/worktree" },