aboutsummaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-08-26 10:28:04 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-26 09:21:01 -0700
commitcbeed9aaa500e2c4b8356a08facaa28121e635de (patch)
treed5c6a54c2e450714969b68b04d4c46710a343707 /tree-walk.c
parenta281639262238a315843a629a7686cff453d6fac (diff)
downloadgit-cbeed9aaa500e2c4b8356a08facaa28121e635de.tar.gz
git-cbeed9aaa500e2c4b8356a08facaa28121e635de.tar.xz
load_subtree(): fix incorrect comment
This comment was added in 851c2b3791 (Teach notes code to properly preserve non-notes in the notes tree, 2010-02-13) when the corresponding code was added. But I believe it was incorrect even then. The condition `path_len != 2` a dozen lines up prevents a path like "dead/beef" from being converted to "de/ad/beef", and indeed the test added in commit 851c2b3 verifies that this case works correctly. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions