gitHistoryVSCode icon indicating copy to clipboard operation
gitHistoryVSCode copied to clipboard

Remote name- Issue Resolved.

Open CaBra503 opened this issue 8 years ago • 4 comments

I'm running into this error when attempting to use plugin with a remote that is not origin?

git remote get-url origin  (completed in 0.013s)
fatal: No such remote 'origin'

Edit: Issue Resolved. User Error..
git remote -v ensure you are using the correct branch name.

CaBra503 avatar Jun 10 '18 16:06 CaBra503

Same issue here. I would really love this issue to be fixed. Could you run git remote show before running git remote get-url <remote-name> ? This should be a fairly easy fix :)

dustinmoris avatar Aug 12 '18 07:08 dustinmoris

I believe that all that needs to be done is change line 162 in git.ts to the following fix:

const origin = await this.exec('remote', 'show')
return await this.exec('remote', 'get-url', origin)
...

dustinmoris avatar Aug 12 '18 08:08 dustinmoris

Submit a pull request?

RevFry avatar Aug 13 '18 13:08 RevFry

Not fixed? Still experiencing this issue.

bdrazen avatar Sep 18 '18 18:09 bdrazen