diff options
author | John Keeping <john@keeping.me.uk> | 2013-06-23 15:58:21 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-23 14:22:28 -0700 |
commit | e0eb6b9720db743993d9374e366cb6b7664f0a6d (patch) | |
tree | b36a886fcfd79457d61202e5f4f86d92634ca667 /t/t0081-line-buffer.sh | |
parent | fast-import: set valid mode on root tree in "ls" (diff) | |
download | tgif-e0eb6b9720db743993d9374e366cb6b7664f0a6d.tar.xz |
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 't/t0081-line-buffer.sh')
0 files changed, 0 insertions, 0 deletions