diff options
author | Ori Livneh <ori@wikimedia.org> | 2015-01-18 09:51:32 -0800 |
---|---|---|
committer | Ori Livneh <ori@wikimedia.org> | 2015-01-18 09:55:52 -0800 |
commit | 1403a9ee056eb4583566dbb58191d1d2556c18b3 (patch) | |
tree | a610fbe7682b799804085c2badd7c99d70b08a84 | |
parent | 548cfda41a32fe0e7ee4f72d099b21fdbeb95404 (diff) | |
download | zuul-1403a9ee056eb4583566dbb58191d1d2556c18b3.tar.gz |
Reset & clean workspace repo for better hygiene
Rather than just updating the repository, have zuul.Cloner update, reset to
remote HEAD, and remove untracked files.
Change-Id: I6813c84ebf7ce5fc87ffea390e035fd19597d71c
-rw-r--r-- | zuul/lib/cloner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/lib/cloner.py b/zuul/lib/cloner.py index 89ebada0e..1507fbd46 100644 --- a/zuul/lib/cloner.py +++ b/zuul/lib/cloner.py @@ -126,7 +126,7 @@ class Cloner(object): repo = self.cloneUpstream(project, dest) - repo.update() + repo.reset() # Ensure that we don't have stale remotes around repo.prune() |