{"thread":{"id":"1604","subject":"[PATCH] sha1_name: do not accept .git/refs/snap/.","startedAt":"2005-08-21T09:43:08Z","lastAt":"2005-08-21T09:43:08Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"7604","messageId":"7vr7cniq1f.fsf@assigned-by-dhcp.cox.net","threadId":"1604","inReplyTo":null,"subject":"[PATCH] sha1_name: do not accept .git/refs/snap/.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-08-21T09:43:08Z","receivedAt":"2005-08-21T09:43:08Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"I think Linus did a cut & paste from an early JIT code while\ndeveloping the current extended SHA1 notation, and left it there as a\ncourtesy, but the directory does not deserve to be treated any more\nspecially than, say, .git/refs/bisect.\n\nIf the subdirectories under .git/refs proliferate, we may want to\nswitch to scanning that hierarchy at runtime, instead of the current\nhard-coded set, although I think that would be overkill.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n\n---\n\n sha1_name.c |    1 -\n 1 files changed, 0 insertions(+), 1 deletions(-)\n\n19b3a5f94a98d523272c5c19fc166e879ce517e0\ndiff --git a/sha1_name.c b/sha1_name.c\n--- a/sha1_name.c\n+++ b/sha1_name.c\n@@ -143,7 +143,6 @@ static int get_sha1_basic(const char *st\n \t\t\"refs\",\n \t\t\"refs/tags\",\n \t\t\"refs/heads\",\n-\t\t\"refs/snap\",\n \t\tNULL\n \t};\n \tconst char **p;\n"}]}