Merge pull request #1020 from MikeMcQuaid/migration-cleanup-git

update-report: cleanup git harder in migration.
This commit is contained in:
Mike McQuaid 2016-09-18 20:43:44 +01:00 committed by GitHub
commit 8e9a9b6428

View File

@ -208,6 +208,9 @@ module Homebrew
unless Utils.popen_read("git status --untracked-files=all --porcelain").empty?
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",
"-c", "user.name=brew update",
"stash", "save", "--include-untracked"