When building the request for build, given a commit, there is a search for whether commit is in the branch. Otherwise the HEAD ref is selected. When doing local development, the HEAD commit might not yet be pushed to the remote and the build fails quickly after clone.
What needs to happen is to search for if the local HEAD commit (or the given commit) exists in the remote branch, and if not to default to the remote HEAD.
When building the request for build, given a commit, there is a search for whether commit is in the branch. Otherwise the HEAD ref is selected. When doing local development, the HEAD commit might not yet be pushed to the remote and the build fails quickly after clone.
What needs to happen is to search for if the local HEAD commit (or the given commit) exists in the remote branch, and if not to default to the remote HEAD.