mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
GitDownloadStrategy: force checkouts
Local changes to the cached repository should not cause fetch or install to error out.
This commit is contained in:
parent
6d1c6dcdea
commit
528072f7d7
@ -415,7 +415,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy
|
|||||||
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}
|
args = %w{checkout -f}
|
||||||
args << { :quiet_flag => '-q' }
|
args << { :quiet_flag => '-q' }
|
||||||
args << ref
|
args << ref
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user