Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit a22aeec

Browse files
committed
chore(.travis.yml): use git clean to clean out untracked files
PR #641 involved renaming a directory. The old directory was still present in the cache, and in this situation `git status` lists the directory as a whole as untracked, so the grep did not find any `.lean` files.
1 parent 54f4b29 commit a22aeec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ install:
2020
- chmod +x $HOME/scripts/travis_long
2121
- (git status | grep -e "Changes not staged for commit:"); RESULT=$?
2222
- if [ $RESULT -eq 0 ]; then git checkout -f HEAD ; fi
23-
- rm `git status | grep "\.lean" | sed "s/\.lean/.olean/"` || true
24-
- rm `git status | grep "\.lean"` || true
23+
- git clean -d -f -q
2524
- rm mathlib.txt || true
2625

2726
jobs:

0 commit comments

Comments
 (0)