mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Fix dangling symlink bug in dirstate walk code
This commit is contained in:
parent
1ca6e5ea0b
commit
9580bfb453
@ -252,7 +252,8 @@ class dirstate:
|
||||
if seen(np):
|
||||
continue
|
||||
p = os.path.join(top, f)
|
||||
st = os.stat(p)
|
||||
# don't trip over symlinks
|
||||
st = os.lstat(p)
|
||||
if stat.S_ISDIR(st.st_mode):
|
||||
ds = os.path.join(nd, f +'/')
|
||||
if statmatch(ds, st):
|
||||
|
Loading…
Reference in New Issue
Block a user