This miniature PR fixes fgh migrate, which was broken because it didn't ensure the dirent was a directory before calling IsGitRepo(), which seems to only work on directories.
Steps
[ ] My change requires a change to the documentation
[ ] I have updated the accessible documentation according
[x] I have read the CONTRIBUTING.md file
[x] There is no duplicate open or closed pull request for this fix/addition/issue resolution.
Description
This miniature PR fixes
fgh migrate
, which was broken because it didn't ensure the dirent was a directory before callingIsGitRepo()
, which seems to only work on directories.Steps
Original Issue
This PR resolves #NaN