Use '/snapshot' path if ref is master

This commit is contained in:
Blerim Sheqa 2017-07-19 13:49:39 +02:00
parent 5059610de6
commit c9e8eb78d3
1 changed files with 2 additions and 0 deletions

View File

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