orbitalci / orbital

Orbital is a self-hosted CI system for solo/small consulting dev teams. Written in Rust.
GNU General Public License v3.0
29 stars 2 forks source link

orb build - Default to the HEAD of the remote branch if local branch has unpushed commits #254

Closed tjtelan closed 4 years ago

tjtelan commented 4 years ago

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.