vscode-copy-github-url icon indicating copy to clipboard operation
vscode-copy-github-url copied to clipboard

Detect private repo default branch

Open differentmatt opened this issue 4 years ago • 4 comments

The current method of using default-branch for detecting the default branch does not work for private repos. See related #21.

differentmatt avatar Aug 30 '21 17:08 differentmatt

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!

benrbray avatar Mar 31 '22 07:03 benrbray

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!

same here 👍

gigibozzopj avatar Jun 14 '24 08:06 gigibozzopj

Thanks, will look into this.

differentmatt avatar Jun 18 '24 18:06 differentmatt

That would be great, wouldnt need to copy urls to notepad and edit them before sharing :)

pavelloz avatar Jul 25 '24 10:07 pavelloz