This makes it compatible with worktrees.
|52 ↗||(On Diff #180595)|
For the record, on Python3, subprocess.check_output generates bytes and not str. It seems to be ok as an argument to os.path.isdir, but it requires an extra decode() after the strip()
|35 ↗||(On Diff #180595)|
The reason why I switched to exists for .git is that .git can either be a file or a directory (because of worktrees). As far as I know .svn will always be a directory so it seems slightly more correct to use isdir here.