frostming / legit

Git for Humans, Inspired by GitHub for Mac™.
https://frostming.github.io/legit
BSD 3-Clause "New" or "Revised" License
5.71k stars 217 forks source link

legit emits error: "Not a git repository" on git subtree #197

Closed davidthewatson closed 7 years ago

davidthewatson commented 8 years ago

I have a git repository with 3 git subtrees. If I'm in one of the subtree directories and I issue a legit command, legit emits "Not a git repository"; however, git recognizes that the directory is part of the subtree and responds as expected.

[monolith] ~/Source/monolith/dog 10-api-returns-role$ git branch
* 10-api-returns-role
  master
[monolith] ~/Source/monolith/dog 10-api-returns-role$ legit branches
Not a git repository.
weakish commented 7 years ago

I have tested with develop branch HEAD against a repository with 2 git subtrees. And legit branches works okay. Thus I guess this has been fixed in recent versions of legit. Close for now. Reopen it if this does not work on your machine.