Browse code

Fix the reclone to actually remove *.pyc

Vishvananda Ishaya authored on 2011/11/15 03:51:17
Showing 1 changed files
... ...
@@ -394,7 +394,7 @@ function git_clone {
394 394
         # remove the existing ignored files (like pyc) as they cause breakage
395 395
         # (due to the py files having older timestamps than our pyc, so python
396 396
         # thinks the pyc files are correct using them)
397
-        sudo git clean -f -d
397
+        find $GIT_DEST -name '*.pyc' -delete
398 398
         git checkout -f origin/$GIT_BRANCH
399 399
         # a local branch might not exist
400 400
         git branch -D $GIT_BRANCH || true