GitDownloadStrategy: force checkouts

Local changes to the cached repository should not cause fetch or install
to error out.
This commit is contained in:
Jack Nagel 2013-02-17 15:54:22 -06:00
parent 6d1c6dcdea
commit 528072f7d7

View File

@ -415,7 +415,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy
else `git symbolic-ref refs/remotes/origin/HEAD`.strip.split("/").last
end
args = %w{checkout}
args = %w{checkout -f}
args << { :quiet_flag => '-q' }
args << ref
end