mirror of
https://github.com/Icinga/icinga-docs-tools.git
synced 2025-07-20 20:34:22 +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)
|
||||
else
|
||||
repo = Git.open(clone_target)
|
||||
repo.fetch()
|
||||
end
|
||||
|
||||
puts "Checkout ref '#{project_config['ref']}'"
|
||||
@ -63,4 +64,4 @@ end
|
||||
|
||||
File.write('mkdocs.yml', mkdocs.to_yaml)
|
||||
|
||||
%x( mkdocs build )
|
||||
%x( mkdocs build )
|
||||
|
Loading…
x
Reference in New Issue
Block a user