mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-11 21:51:48 +00:00
* ci: fall back to develop when frappe has no matching branch The frappe branch to install is taken from the pull request's base branch. A stacked pull request targets another erpnext branch, so the clone fails with "couldn't find remote ref", no bench is installed, and every job that needs one fails with it. Fall back to develop when the base branch does not exist in frappe. An explicit FRAPPE_BRANCH is left alone, since it can be a commit sha rather than a branch. * ci: only fall back when frappe is known to lack the branch git ls-remote --exit-code reports 2 for a branch that is not there and 128 for a remote it could not reach. Treating both as absence let a transient network or DNS failure install develop over the branch the pull request was built against. Fall back on 2 alone and log anything else, so a flaky probe leaves the branch as it was.