Closed tjtelan closed 4 years ago
The branch doesn't seem to matter.
My remote branch from the original post is now pushed remote. But when I am checked out in that branch, and I run ocelot build -branch master
, it builds the latest commit from the branch I've got checked out.
[...]
| 2544 | petoolbox | 2 minutes and 7 seconds | Fri Feb 1 16:43:29 | PASS | master | abcdcommithash |
| 2541 | petoolbox | 0 seconds | Fri Feb 1 10:52:04 | PASS | tj | abcdcommithash |
[...]
We need to change the checkout pattern to first git checkout <branch
, then reset head to the commit hash.
If we still end up in detatched HEAD, then that commit doesn't belong to the branch specified. Which is a user-error. (Don't block though.)
In this case, my remote origin only has one branch:
master
. That branch has an ocelot.yml, and is supported just fine for ocelot.Locally, I have just recently moved into a new branch with
git checkout -B tj
. But then I runocelot build -branch master
expecting that I want to kick off a build of whatever is the latest commit in themaster
branch.stdout:
stderr: