vscode-copy-github-url
vscode-copy-github-url copied to clipboard
Detect private repo default branch
The current method of using default-branch for detecting the default branch does not work for private repos. See related #21.
I'm running into this issue for a private repo whose default is master, but the URLs produced use main. Would it be possible to check the local list of branches and use whichever of main and master is actually present? Thanks!
I'm running into this issue for a private repo whose default is
master, but the URLs produced usemain. Would it be possible to check the local list of branches and use whichever ofmainandmasteris actually present? Thanks!
same here 👍
Thanks, will look into this.
That would be great, wouldnt need to copy urls to notepad and edit them before sharing :)