diff --git a/lib/librarian/puppet/simple/cli.rb b/lib/librarian/puppet/simple/cli.rb index 3c4bb50..be63f4c 100644 --- a/lib/librarian/puppet/simple/cli.rb +++ b/lib/librarian/puppet/simple/cli.rb @@ -51,8 +51,8 @@ def update if branch =~ /^origin\/(.*)$/ branch = $1 end - co_cmd = 'git checkout FETCH_HEAD' - update_cmd = "git fetch #{repo[:git]} #{branch} && #{co_cmd}" + co_cmd = "git checkout #{branch}" + update_cmd = "git fetch --all && #{co_cmd}" print_verbose "\n\n#{repo[:name]} -- #{update_cmd}" git_pull_cmd = system_cmd(update_cmd) end