Skip to content
Snippets Groups Projects
Commit 2bca5ccb authored by Ruben Davila's avatar Ruben Davila
Browse files

Fetch repositories with --prune option by default.

This will allow us to not recreate branches that has been deleted on the upstream and the mirror.
parent d7428a5a
No related branches found
No related tags found
1 merge request!110Fetch repositories with --prune option by default.
Pipeline #
v4.0.3
- Fetch repositories with `--prune` option by default
v4.0.2
- Fix gitlab_custom_hook dependencies
 
Loading
Loading
Loading
Loading
@@ -205,6 +205,7 @@ class GitlabProjects
 
$logger.info "Fetching remote #{@name} for project #{@project_name}."
cmd = %W(git --git-dir=#{full_path} fetch #{@name})
cmd << '--prune'
cmd << '--force' if forced
cmd << tags_option
pid = Process.spawn(*cmd)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment