mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
During test upgrade from another commit, fail immediately if that commit couldnt be checkedout
This commit is contained in:
parent
caaf968b0d
commit
1cc96b9533
1 changed files with 3 additions and 1 deletions
|
@ -456,7 +456,9 @@ TEST_UPGRADE () {
|
|||
# Make a backup of the directory
|
||||
# and Change to the specified commit
|
||||
cp -a "$package_path" "${package_path}_back"
|
||||
(cd "$package_path"; git checkout --force --quiet "$commit")
|
||||
pushd "$package_path"
|
||||
git checkout --force --quiet "$commit" || { log_error "Failed to checkout commit $commit ?"; return 1; }
|
||||
popd
|
||||
|
||||
LOAD_LXC_SNAPSHOT snap0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue