From 87cecdc25a3d7e41265e0436fb1cf8615f2121d1 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 2 Aug 2017 16:40:07 +0200 Subject: [PATCH] Ensure to fetch before checking out a new Git ref --- build-docs.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-docs.rb b/build-docs.rb index 9736155..074afe2 100755 --- a/build-docs.rb +++ b/build-docs.rb @@ -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 ) \ No newline at end of file +%x( mkdocs build )