Fix file.recurse on root of hgfs repo

This fixes a condition where a file.recurse fails on the root of an hgfs
repo when the repo has a mountpoint. See #20812.
This commit is contained in:
Erik Johnson 2015-03-08 01:06:39 -06:00
parent 6f6f4b9ce0
commit 346f59c6e5

View File

@ -875,4 +875,6 @@ def _get_dir_list(load):
ret.add(os.path.join(repo['mountpoint'], relpath))
split = split[0].rsplit('/', 1)
repo['repo'].close()
if repo['mountpoint']:
ret.add(repo['mountpoint'])
return sorted(ret)