Ensure to fetch before checking out a new Git ref

This commit is contained in:
Michael Friedrich 2017-08-02 16:40:07 +02:00
parent 6ef11d2578
commit 87cecdc25a
1 changed files with 2 additions and 1 deletions

View File

@ -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 )