Skip to content

Commit e219b12

Browse files
committed
Merge pull request #190 from cloudbuilders/fix-reclone
Fix the reclone to actually remove *.pyc
2 parents 9bb1a3c + 6b8855c commit e219b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function git_clone {
397397
# remove the existing ignored files (like pyc) as they cause breakage
398398
# (due to the py files having older timestamps than our pyc, so python
399399
# thinks the pyc files are correct using them)
400-
sudo git clean -f -d
400+
find $GIT_DEST -name '*.pyc' -delete
401401
git checkout -f origin/$GIT_BRANCH
402402
# a local branch might not exist
403403
git branch -D $GIT_BRANCH || true

0 commit comments

Comments
 (0)