Merge pull request #190 from cloudbuilders/fix-reclone

Fix the reclone to actually remove *.pyc
This commit is contained in:
vishvananda 2011-11-14 11:05:52 -08:00
commit e219b1218d

View file

@ -397,7 +397,7 @@ function git_clone {
# remove the existing ignored files (like pyc) as they cause breakage # remove the existing ignored files (like pyc) as they cause breakage
# (due to the py files having older timestamps than our pyc, so python # (due to the py files having older timestamps than our pyc, so python
# thinks the pyc files are correct using them) # thinks the pyc files are correct using them)
sudo git clean -f -d find $GIT_DEST -name '*.pyc' -delete
git checkout -f origin/$GIT_BRANCH git checkout -f origin/$GIT_BRANCH
# a local branch might not exist # a local branch might not exist
git branch -D $GIT_BRANCH || true git branch -D $GIT_BRANCH || true