What needs to be done specifically?
AddOn manager clones master, but github switched to main
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: AddOn manager clones master, but github switched to main
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: AddOn manager clones master, but github switched to main
normally a
Code: Select all
git submodule update --init --recursive trails
Re: AddOn manager clones master, but github switched to main
BTW: it is master: git commit 475668638a81 The AddOn manager started to clone the default branch and not any longer the master branch.
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: AddOn manager clones master, but github switched to main
Is that mean normal users can install trails without using a git code?
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: AddOn manager clones master, but github switched to main
no, because the AddOn manage still does not support submodules AFAIK. But if they try at least the correct branch (in case of trails dev) will be cloned. Just give it a try ... temprary move your trails folder out of Mod and get trails with the AddOn manager.HakanSeven12 wrote: ↑Wed Nov 18, 2020 11:48 am Is that mean normal users can install trails without using a git code?
Re: AddOn manager clones master, but github switched to main
Can anyone check if Extension Manager (the add-on manager's replacement) supports submodules? (I'm on mobile atm and can't easily check)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: AddOn manager clones master, but github switched to main
it only works if the Python git module is available. On standard FreeCAD windows LP version Python git is not available. Thus the AddOn manager still trys to download master branch.bernd wrote: ↑Wed Nov 18, 2020 8:33 am BTW: it is master: git commit 475668638a81 The AddOn manager started to clone the default branch and not any longer the master branch.
Re: AddOn manager clones master, but github switched to main
I use locally compiled LP build and tried to install a workbench from Gitlab by adding it as custom repository. It had a Main branch but installed just fine. I have separate Git installed but cant confirm if FreeCAD used it now.
Re: AddOn manager clones master, but github switched to main
The problem is here: https://github.com/FreeCAD/FreeCAD/blob ... es.py#L251
When gitpython is not used, the above function is used to retrieve the location of the zip file. The question is, how to know the correct url?
When gitpython is not used, the above function is used to retrieve the location of the zip file. The question is, how to know the correct url?
Re: AddOn manager clones master, but github switched to main
If gitlab is used the question reduces to what is the default branch AFAIK, thus https://davidwalsh.name/get-default-branch-nameyorik wrote: ↑Thu Jan 14, 2021 12:39 pm The problem is here: https://github.com/FreeCAD/FreeCAD/blob ... es.py#L251
When gitpython is not used, the above function is used to retrieve the location of the zip file. The question is, how to know the correct url?
as an example trails wb which uses dev as default branch
Code: Select all
$ git ls-remote --symref https://github.com/joelgraff/freecad.trails HEAD | awk -F'[/\t]' 'NR == 1 {print $3}'
dev