Is there a way to set the branch when running `col...
# box-products
r
Is there a way to set the branch when running
coldbox create app skeleton=xxx
Repos with a
main
branch instead of
master
seem to have issues
Not the end of the world, just an annoyance
Figured Brad would know offhand
d
the scaffolded app that the command creates has noting to do with the git branch.
what issue are you having with "main"?
r
Copy code
Error cloning github repository

org.eclipse.jgit.api.errors.RefNotFoundException: Ref master cannot be resolved
\system\endpoints\Git.cfc: line 129
127:                            } while( !isNull( theRealJavaException ) )
128:
129:                            throw( message="Error cloning #getNamePrefixes()# repository", detail="#deepMessage#",  type="endpointException");
130:                    }
131:
The repo in question uses main instead of master
No worries, I can work around it
d
I use main on all my repos with bullet train too. thats odd
r
Not a huge deal, I just didn't know if there was an easy way to specify a branch
b
@Robert Zehnder Yeah, that's just the behavior of the Git endpoing-- the master branch is assumed to be the default
šŸ‘ 1
r
Figured as much
b
What exactly is your command
because you can totally specify a branch, if you are pointing to a Git endpoint
Just use the committish
r
Copy code
box coldbox create app skeleton=robertz/commandbox-ssg
b
Right, so
Copy code
box coldbox create app skeleton=robertz/commandbox-ssg#main
Or just go back, to using
master
as your default branch šŸ™‚
šŸ‘ 1
r
I was trying to pull down a repo i was working on with coldbox create app
it isn't far enough along to muck about with forgebox.. i suppose i could just clone it, but meh
d
ah i get it now. learn something new everytime with Brad
🤣 1
r
I pop in every few weeks to give him a hard time
b
So, does the version of the command I gave above work?
šŸ‘ 1
r
Sorry Brad, I just noticed that... that Worked
sweet
That was a neat trick
b
Yep, that's called comittish
it can be a • branch • tag • commit sha
I thought I had put in a check so if the
master
branch didn't exist, I would look for
main
but I guess I never did it
r
Saved the day again. Thanks Brad
šŸ‘ 1
b
@Robert Zehnder Ok, fixed on the bleeding edge https://ortussolutions.atlassian.net/browse/COMMANDBOX-1565
šŸ‘ 1
šŸ‘šŸ¾ 1
r
Awesome