summaryrefslogtreecommitdiff
path: root/mergesort.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-06-23 15:58:21 +0100
committerJunio C Hamano <gitster@pobox.com>2013-06-23 14:22:28 -0700
commite0eb6b9720db743993d9374e366cb6b7664f0a6d (patch)
treeb36a886fcfd79457d61202e5f4f86d92634ca667 /mergesort.c
parentadefdba536623e23af5d808eea9ec3eba5c55dd6 (diff)
downloadgit-e0eb6b9720db743993d9374e366cb6b7664f0a6d.tar.gz
fast-import: allow ls or filecopy of the root tree
Commit 178e1de (fast-import: don't allow 'ls' of path with empty components, 2012-03-09) restricted paths which: . contain an empty directory component (e.g. foo//bar is invalid), . end with a directory separator (e.g. foo/ is invalid), . start with a directory separator (e.g. /foo is invalid). However, the implementation also caught the empty path, which should represent the root tree. Relax this restriction so that the empty path is explicitly allowed and refers to the root tree. Reported-by: Dave Abrahams <dave@boostpro.com> Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergesort.c')
0 files changed, 0 insertions, 0 deletions