Cleanup local changes before checking out upstream corpus
This commit is contained in:
parent
c9bdcb9660
commit
4b0bf986be
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ module Corpus
|
|||
if repo_path.exist?
|
||||
Dir.chdir(repo_path) do
|
||||
system(%w[git fetch])
|
||||
system(%w[git reset --hard])
|
||||
system(%w[git clean -f -d -x])
|
||||
system(%w[git checkout origin/master])
|
||||
system(%w[git reset --hard])
|
||||
system(%w[git clean -f -d -x])
|
||||
|
|
Loading…
Add table
Reference in a new issue