Merge pull request #1020 from MikeMcQuaid/migration-cleanup-git
update-report: cleanup git harder in migration.
This commit is contained in:
commit
8e9a9b6428
@ -208,6 +208,9 @@ module Homebrew
|
|||||||
|
|
||||||
unless Utils.popen_read("git status --untracked-files=all --porcelain").empty?
|
unless Utils.popen_read("git status --untracked-files=all --porcelain").empty?
|
||||||
HOMEBREW_REPOSITORY.cd do
|
HOMEBREW_REPOSITORY.cd do
|
||||||
|
quiet_system "git", "merge", "--abort"
|
||||||
|
quiet_system "git", "rebase", "--abort"
|
||||||
|
quiet_system "git", "reset", "--mixed"
|
||||||
safe_system "git", "-c", "user.email=brew-update@localhost",
|
safe_system "git", "-c", "user.email=brew-update@localhost",
|
||||||
"-c", "user.name=brew update",
|
"-c", "user.name=brew update",
|
||||||
"stash", "save", "--include-untracked"
|
"stash", "save", "--include-untracked"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user