Page MenuHomePhabricator

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.