diff --git a/lib/tasks/gitlab/shell.rake b/lib/tasks/gitlab/shell.rake index a8f26a7c02931f8484aea7d0d3d86a1f3e196ee0..ab09dd1a9590466ab1d6b4b24071087b56f7f0c3 100644 --- a/lib/tasks/gitlab/shell.rake +++ b/lib/tasks/gitlab/shell.rake @@ -24,7 +24,7 @@ namespace :gitlab do Dir.chdir(target_dir) do # First try to checkout without fetching # to avoid stalling tests if the Internet is down. - reset = "git reset --hard $(git describe #{args.tag} || git describe origin/#{args.tag})" + reset = "git reset --hard $(git describe #{args.tag})" sh "#{reset} || git fetch origin && #{reset}" config = {