mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-04 23:29:00 +00:00
fix: avoid fetching, changing remote and switching branch if pull_on_build is false
This commit is contained in:
parent
30873c4969
commit
ff49e5bc81
1 changed files with 3 additions and 3 deletions
|
@ -108,10 +108,10 @@ impl Git {
|
||||||
pub fn get_pre_build_jobs(&self, pull_on_build: bool) -> Vec<WorkerJob> {
|
pub fn get_pre_build_jobs(&self, pull_on_build: bool) -> Vec<WorkerJob> {
|
||||||
let mut jobs = Vec::<WorkerJob>::new();
|
let mut jobs = Vec::<WorkerJob>::new();
|
||||||
if self.clone_exists() {
|
if self.clone_exists() {
|
||||||
|
if pull_on_build {
|
||||||
jobs.push(self.get_override_remote_url_job());
|
jobs.push(self.get_override_remote_url_job());
|
||||||
jobs.push(self.get_fetch_job());
|
jobs.push(self.get_fetch_job());
|
||||||
jobs.push(self.get_checkout_ref_job());
|
jobs.push(self.get_checkout_ref_job());
|
||||||
if pull_on_build {
|
|
||||||
jobs.push(self.get_pull_job());
|
jobs.push(self.get_pull_job());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue