( )⚙ D10179 subrepo: handle unexpected file types from git gracefully

This is an archive of the discontinued Mercurial Phabricator instance.

subrepo: handle unexpected file types from git gracefully
ClosedPublic

Authored by mharbison72 on Mar 12 2021, 1:09 PM.

Details

Summary

This was flagged by pytype because tar.extractfile(...) can return None if the
entry is not a file or symlink. I don't think that git supports other types,
but better safe than sorry.

Diff Detail

Repository
rHG Mercurial
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage