DonJayamanne / gitHistoryVSCode

Git History for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
MIT License
946 stars 153 forks source link

[bug or feature request] can't locate .git automatically on "View History" command #373

Open jsomedon opened 5 years ago

jsomedon commented 5 years ago

Everytime I click Git: View History I always get fatal: not a git repository (or any of the parent directories): .git and I have to manually select repo dir from the prompt. I thought the plugin would find closest .git dir from its ancestors? Or is this kinda disabled but somehow I can enable it? Or is this feature missing for now?

Update: So looks like this happens if there is a sibling git repo. Here is what I tried:

  1. Two git repos inside a regular top folder:
    top/repoa/
    top/repob/ 
  2. Add a single repo to workspace, it works fine. No error, no prompt.
  3. Add both repos, each as a uniq vscode workspace. No error, but I have to select repo dir from the prompt. Would like to see the plugin automatically guess repo dir based on dir of the file it's operating on.
  4. Add top level folder as a single vscode workspace. Now I am having the problem I posted above - there is error and I still see the prompt, and I still get the log after selecting repo dir from prompt.
seyfullahari commented 5 years ago

same problem

maty974 commented 5 years ago

Same here, uninstalled today because I can't use the extension :(

9a-aaaaaaaa commented 5 years ago

shifty

javon27 commented 4 years ago

GitLens doesn't seem to have any problem doing this. Is anyone looking into these sort of issues?