mirror of
https://github.com/Icinga/icinga-docs-tools.git
synced 2025-07-08 14:34:27 +02:00
Ensure to fetch before checking out a new Git ref
This commit is contained in:
parent
6ef11d2578
commit
87cecdc25a
@ -29,6 +29,7 @@ config['projects'].each do |project_name, project_config|
|
|||||||
repo = Git.clone(project_config['git'], clone_target)
|
repo = Git.clone(project_config['git'], clone_target)
|
||||||
else
|
else
|
||||||
repo = Git.open(clone_target)
|
repo = Git.open(clone_target)
|
||||||
|
repo.fetch()
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "Checkout ref '#{project_config['ref']}'"
|
puts "Checkout ref '#{project_config['ref']}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user