* build scripts: branches with forward slashes in names @ 2023-11-23 22:22 Deborah Brouwer 2023-11-24 7:23 ` Hans Verkuil 0 siblings, 1 reply; 4+ messages in thread From: Deborah Brouwer @ 2023-11-23 22:22 UTC (permalink / raw) To: hverkuil-cisco; +Cc: linux-media Hi Hans, Have you ever had a problem running the build scripts on branches with forward slashes in their names? So, for example, I add my repo to env.sh myrepo=https://gitlab.collabora.com/chipsnmedia/kernel I run ./build.sh setup and I can see it fetching my repo and including my branch "dbrouwer/KConfig_fix", but if try to run: ./build.sh -test all dbrouwer/KConfig_fix I get this error: "fatal: 'dbrouwer/KConfig_fix' is not a commit and a branch 'build-test' cannot be created from it" But then if I change the branch name to remove the forward slash "KConfig_fix" it works fine again. Have you noticed anything similar? Could it be easily fixed? Thanks, Deborah ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: build scripts: branches with forward slashes in names 2023-11-23 22:22 build scripts: branches with forward slashes in names Deborah Brouwer @ 2023-11-24 7:23 ` Hans Verkuil 2023-11-24 9:37 ` Hans Verkuil 0 siblings, 1 reply; 4+ messages in thread From: Hans Verkuil @ 2023-11-24 7:23 UTC (permalink / raw) To: Deborah Brouwer; +Cc: linux-media On 23/11/2023 23:22, Deborah Brouwer wrote: > Hi Hans, > > Have you ever had a problem running the build scripts on branches with > forward slashes in their names? > > So, for example, I add my repo to env.sh > myrepo=https://gitlab.collabora.com/chipsnmedia/kernel > > I run ./build.sh setup and I can see it fetching my repo and including > my branch "dbrouwer/KConfig_fix", but if try to run: > > ./build.sh -test all dbrouwer/KConfig_fix > > I get this error: > > "fatal: 'dbrouwer/KConfig_fix' is not a commit and a branch 'build-test' cannot be created from it" > > But then if I change the branch name to remove the forward slash "KConfig_fix" it works fine again. > > Have you noticed anything similar? Could it be easily fixed? > > Thanks, > Deborah > From the README: "If <branch> is absent, then it will default to media_stage/master. If it contains a / character, then the branch name will be used as-is (e.g. use <remote>/<branch> to build a branch on a specific remote), otherwise the branch name will be prefixed by main/ (e.g. main/<branch>), which uses the branch on your '$myrepo' repository." I never use / in branch names (too confusing with / in pathnames), and since I developed these scripts originally for myself, I just grepped for /. Perhaps the build script should allow for 0-2 arguments at the end: nothing means media_stage/master, 1 arg means main/<branch> and 2 args means <remote>/<branch>. Let me see what I can do. Regards, Hans ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: build scripts: branches with forward slashes in names 2023-11-24 7:23 ` Hans Verkuil @ 2023-11-24 9:37 ` Hans Verkuil 2023-11-24 18:00 ` Deborah Brouwer 0 siblings, 1 reply; 4+ messages in thread From: Hans Verkuil @ 2023-11-24 9:37 UTC (permalink / raw) To: Deborah Brouwer; +Cc: linux-media On 24/11/2023 08:23, Hans Verkuil wrote: > On 23/11/2023 23:22, Deborah Brouwer wrote: >> Hi Hans, >> >> Have you ever had a problem running the build scripts on branches with >> forward slashes in their names? >> >> So, for example, I add my repo to env.sh >> myrepo=https://gitlab.collabora.com/chipsnmedia/kernel >> >> I run ./build.sh setup and I can see it fetching my repo and including >> my branch "dbrouwer/KConfig_fix", but if try to run: >> >> ./build.sh -test all dbrouwer/KConfig_fix >> >> I get this error: >> >> "fatal: 'dbrouwer/KConfig_fix' is not a commit and a branch 'build-test' cannot be created from it" >> >> But then if I change the branch name to remove the forward slash "KConfig_fix" it works fine again. >> >> Have you noticed anything similar? Could it be easily fixed? >> >> Thanks, >> Deborah >> > > From the README: > > "If <branch> is absent, then it will default to media_stage/master. If it > contains a / character, then the branch name will be used as-is (e.g. > use <remote>/<branch> to build a branch on a specific remote), otherwise > the branch name will be prefixed by main/ (e.g. main/<branch>), which > uses the branch on your '$myrepo' repository." > > I never use / in branch names (too confusing with / in pathnames), and since > I developed these scripts originally for myself, I just grepped for /. > > Perhaps the build script should allow for 0-2 arguments at the end: > nothing means media_stage/master, 1 arg means main/<branch> and 2 args > means <remote>/<branch>. > > Let me see what I can do. I've done exactly that: after the <branch> argument you can now add an optional <remote> argument. So branch now supports / in the name. Regards, Hans ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: build scripts: branches with forward slashes in names 2023-11-24 9:37 ` Hans Verkuil @ 2023-11-24 18:00 ` Deborah Brouwer 0 siblings, 0 replies; 4+ messages in thread From: Deborah Brouwer @ 2023-11-24 18:00 UTC (permalink / raw) To: Hans Verkuil; +Cc: linux-media On Fri, Nov 24, 2023 at 10:37:59AM +0100, Hans Verkuil wrote: > On 24/11/2023 08:23, Hans Verkuil wrote: > > On 23/11/2023 23:22, Deborah Brouwer wrote: > >> Hi Hans, > >> > >> Have you ever had a problem running the build scripts on branches with > >> forward slashes in their names? > >> > >> So, for example, I add my repo to env.sh > >> myrepo=https://gitlab.collabora.com/chipsnmedia/kernel > >> > >> I run ./build.sh setup and I can see it fetching my repo and including > >> my branch "dbrouwer/KConfig_fix", but if try to run: > >> > >> ./build.sh -test all dbrouwer/KConfig_fix > >> > >> I get this error: > >> > >> "fatal: 'dbrouwer/KConfig_fix' is not a commit and a branch 'build-test' cannot be created from it" > >> > >> But then if I change the branch name to remove the forward slash "KConfig_fix" it works fine again. > >> > >> Have you noticed anything similar? Could it be easily fixed? > >> > >> Thanks, > >> Deborah > >> > > > > From the README: > > > > "If <branch> is absent, then it will default to media_stage/master. If it > > contains a / character, then the branch name will be used as-is (e.g. > > use <remote>/<branch> to build a branch on a specific remote), otherwise > > the branch name will be prefixed by main/ (e.g. main/<branch>), which > > uses the branch on your '$myrepo' repository." > > > > I never use / in branch names (too confusing with / in pathnames), and since > > I developed these scripts originally for myself, I just grepped for /. > > > > Perhaps the build script should allow for 0-2 arguments at the end: > > nothing means media_stage/master, 1 arg means main/<branch> and 2 args > > means <remote>/<branch>. > > > > Let me see what I can do. > > I've done exactly that: after the <branch> argument you can now add an > optional <remote> argument. So branch now supports / in the name. Ah thanks for fixing this, I tested it and it works fine now: "branch 'build-test' set up to track 'main/dbrouwer/KConfig_fix'." > > Regards, > > Hans > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-24 18:00 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-11-23 22:22 build scripts: branches with forward slashes in names Deborah Brouwer 2023-11-24 7:23 ` Hans Verkuil 2023-11-24 9:37 ` Hans Verkuil 2023-11-24 18:00 ` Deborah Brouwer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox