From c9e8eb78d3922119d0b2076b706e1ff7ded05b02 Mon Sep 17 00:00:00 2001 From: Blerim Sheqa Date: Wed, 19 Jul 2017 13:49:39 +0200 Subject: [PATCH] Use '/snapshot' path if ref is master --- build-docs.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-docs.rb b/build-docs.rb index 36dfdf5..9736155 100755 --- a/build-docs.rb +++ b/build-docs.rb @@ -14,6 +14,8 @@ config['projects'].each do |project_name, project_config| if project_config['latest'] == true clone_target = project_dir + '/latest' + elsif project_config['ref'] == 'master' + clone_target = project_dir + '/snapshot' else clone_target = project_dir + '/' + project_config['ref'].gsub('tags/', '') end