eg. https://github.com/halfbrained/cuda_extended_selection
code in addon manager is adding 'master' branch name. to URL.
any idea how to get real branch name? eg 'main'
@halfbrained @kvichans @dinkumoil @jairo-martinez
I was doing some testing, but I suppose at the end you will need to fetch the repository to get the list of remote branch, something like this:
cd <TemporalFolder>
git init
git remote add origin [email protected]:halfbrained/cuda_extended_selection.git
git fetch
git remote -r
Currently the Addon Manager validate first the file /master/install.inf but as you say master branch is not present, you need to get first the list of branches and then you can continue the validation of install.inf file.
According to GitHub's repository API it is possible to query the branch list of a repository with the URL https://api.github.com/repos/{user}/{repo}/branches.
For the repo you mentioned above the URL would be: https://api.github.com/repos/halfbrained/cuda_extended_selection/branches
Most helpful comment
According to GitHub's repository API it is possible to query the branch list of a repository with the URL
https://api.github.com/repos/{user}/{repo}/branches.For the repo you mentioned above the URL would be: https://api.github.com/repos/halfbrained/cuda_extended_selection/branches