diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-08-26 10:28:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-26 09:21:01 -0700 |
commit | cbeed9aaa500e2c4b8356a08facaa28121e635de (patch) | |
tree | d5c6a54c2e450714969b68b04d4c46710a343707 /parse-options.c | |
parent | load_subtree(): reduce the scope of some local variables (diff) | |
download | tgif-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 'parse-options.c')
0 files changed, 0 insertions, 0 deletions