-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is it possible to change the default git branch from master to something else? #111
Comments
Hi, I'm not able to reproduce the issue. I added your config file above to the registry as JSONTestIssue.json. I had to change the 0 in "printLocalHookOutput" to "" to avoid an error (can't use numbers). It then ran as expected without printing an error or warning. I am using a Macintosh. My output is below. I ran the tbUse command twice, once for initial install and once to see what happened after install. No error message or warning either time. Maybe try deleting the toolbox from your system and trying again? It installs this toolbox in folder "JSONio_main". If this doesn't work, we'll have to delve further about what's different across our systems. Best, David
ans = struct with fields:
ans = struct with fields:
|
Thanks for your quick response -- removing the toolbox and trying again indeed fixed the issue. I'm sorry I didn't think of trying that! Maybe the branch was renamed sometime after I used this git repository for the first time creating some kind of conflict. In any case, solved now. |
Great. I deleted the test .json file from the registry. Note that there is a JSONio.json in the registry already, pointing at the same toolbox (I just noticed). It also appears to work fine, without the flavor field being needed. |
Hi,
This may be related to #96, I'm not exactly sure, but I'm wondering if there's a potential solution to the following:
I have a configuration .json in which I add a remote git repository that does not have a 'master' branch, instead the default branch is called 'main'. I know I can check out other branches than master by adding it as a flavor (see below). However when I call tbUse I still get an error message:
So my impression is that ToolboxToolbox by default checks the master branch and throws the error. Is there are way to override this default by changing my configuration file? I think it is still updating (because of the flavor) so that's not the issue, rather that having the error be consistently there may give others using my configuration files the impression something is wrong and may make me miss other relevant error messages.
Many thanks for your help!
The text was updated successfully, but these errors were encountered: