We can just reset the repo instead of trying to checkout specific files.
This fix external repos which doesn't not have requirements.txt or
test-requirements.txt.
Closes-Bug: 1231334
Change-Id: Iab898f5e8a422cc0cbfe44839c938f22c7525fd8
| ... | ... |
@@ -1257,7 +1257,7 @@ function setup_develop() {
|
| 1257 | 1257 |
|
| 1258 | 1258 |
# Undo requirements changes, if we made them |
| 1259 | 1259 |
if [ $update_requirements -eq 0 ]; then |
| 1260 |
- (cd $project_dir && git checkout -- requirements.txt test-requirements.txt setup.py) |
|
| 1260 |
+ (cd $project_dir && git reset --hard) |
|
| 1261 | 1261 |
fi |
| 1262 | 1262 |
} |
| 1263 | 1263 |
|