fix error: did you mean '--all' (with two dashes ?)

This commit is contained in:
Alexander Machehin 2013-03-19 00:26:45 +06:00
parent b57ea072a4
commit b31304b187
1 changed files with 1 additions and 2 deletions

View File

@ -177,8 +177,7 @@ class PullRequest < ActiveRecord::Base
Dir.chdir(path) do Dir.chdir(path) do
system 'git', 'tag', '-d', from_ref, to_ref system 'git', 'tag', '-d', from_ref, to_ref
system 'git fetch --tags -all' system 'git fetch --tags && git fetch --all'
system 'git fetch --all'
tags, head = repo.tags.map(&:name), to_project == from_project ? 'origin' : 'head' tags, head = repo.tags.map(&:name), to_project == from_project ? 'origin' : 'head'
system 'git', 'checkout', to_ref system 'git', 'checkout', to_ref