Just reset the repo instead of trying to co files

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
This commit is contained in:
Chmouel Boudjnah 2013-09-26 09:20:04 +00:00 committed by Gerrit Code Review
parent af0912b512
commit cbce1fa418

View File

@ -1257,7 +1257,7 @@ function setup_develop() {
# Undo requirements changes, if we made them
if [ $update_requirements -eq 0 ]; then
(cd $project_dir && git checkout -- requirements.txt test-requirements.txt setup.py)
(cd $project_dir && git reset --hard)
fi
}