Comment by Symbiote Comment by Symbiote 2 days ago 1 reply Copy Link View on Hacker News For Git one could look for .git/config. There must be something equivalent.
Copy Link remram 12 hours ago Collapse Comment - .git will be a file and not a directory, if you are in a submodule or a worktree.You just illustrated why trying to assume the functionality of a third-party app instead of calling it creates even more bugs. Reply View | 0 replies
.git will be a file and not a directory, if you are in a submodule or a worktree.
You just illustrated why trying to assume the functionality of a third-party app instead of calling it creates even more bugs.