Fix "git freeze" failing on broken symlinks
Fix "git freeze" failing on broken symlinks

Fixed by switching "stat()" to "lstat()".

Does not seem to be a python3 vs python2 thing (fails on py2 as well).

Bug: 1071066
Change-Id: I7eea9ed39b43e09ae2f7558bf23c12581f02e4a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2150507
Reviewed-by: Edward Lesmes <d05609f027dc667cc37492b1dc1bdea5d60fa82a@chromium.org>
Commit-Queue: Edward Lesmes <d05609f027dc667cc37492b1dc1bdea5d60fa82a@chromium.org>
Auto-Submit: Andrew Grieve <f5a68dd3fb158cd420e05ca279f52a686c662bee@chromium.org>

CoherentLabs/depot_tools,CoherentLabs/depot_tools