GitDownloadStrategy: remove redundant use of :quiet_flag
This commit is contained in:
parent
90b1102f1a
commit
9705e922e3
@ -526,9 +526,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
|||||||
else `git symbolic-ref refs/remotes/origin/HEAD`.strip.split("/").last
|
else `git symbolic-ref refs/remotes/origin/HEAD`.strip.split("/").last
|
||||||
end
|
end
|
||||||
|
|
||||||
args = %w{checkout -f}
|
%W{checkout -f #{ref}}
|
||||||
args << { :quiet_flag => '-q' }
|
|
||||||
args << ref
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def checkout
|
def checkout
|
||||||
@ -542,9 +540,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
|||||||
else "origin/HEAD"
|
else "origin/HEAD"
|
||||||
end
|
end
|
||||||
|
|
||||||
args = %w{reset}
|
%W{reset --hard #{ref}}
|
||||||
args << { :quiet_flag => "-q" }
|
|
||||||
args << "--hard" << ref
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset
|
def reset
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user