mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 03:24:52 +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> {
|
||||
let mut jobs = Vec::<WorkerJob>::new();
|
||||
if self.clone_exists() {
|
||||
jobs.push(self.get_override_remote_url_job());
|
||||
jobs.push(self.get_fetch_job());
|
||||
jobs.push(self.get_checkout_ref_job());
|
||||
if pull_on_build {
|
||||
jobs.push(self.get_override_remote_url_job());
|
||||
jobs.push(self.get_fetch_job());
|
||||
jobs.push(self.get_checkout_ref_job());
|
||||
jobs.push(self.get_pull_job());
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue