mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
More sanity checks
This commit is contained in:
parent
03cdffca88
commit
d95027ef22
1 changed files with 8 additions and 0 deletions
|
@ -259,12 +259,20 @@ function fetch_package_to_test() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
else ! git ls-remote --quiet --exit-code $path_to_package_to_test ${gitbranch##-b } >/dev/null
|
||||||
|
log_critical "Branch ${gitbranch##-b } doesn't exists (anymore?) ?"
|
||||||
|
fi
|
||||||
|
|
||||||
log_info " on branch ${gitbranch##-b }"
|
log_info " on branch ${gitbranch##-b }"
|
||||||
|
|
||||||
# Clone the repository
|
# Clone the repository
|
||||||
git clone --quiet $path_to_package_to_test $gitbranch "$package_path"
|
git clone --quiet $path_to_package_to_test $gitbranch "$package_path"
|
||||||
|
|
||||||
|
if [[ ! -e "$package_path" ]]
|
||||||
|
then
|
||||||
|
log_critical "Failed to git clone the repo / branch ?"
|
||||||
|
fi
|
||||||
|
|
||||||
log_info " (commit $(git -C $package_path rev-parse HEAD))"
|
log_info " (commit $(git -C $package_path rev-parse HEAD))"
|
||||||
|
|
||||||
# If it's a local directory
|
# If it's a local directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue