This commit is contained in:
ericgaspar 2023-03-19 10:13:47 +01:00
parent c5ecc15162
commit 3cf3935919
2 changed files with 3 additions and 0 deletions

View file

@ -85,6 +85,8 @@ ynh_system_user_create --username=$app --home_dir=$final_path
ynh_script_progression --message="Setting up source files..."
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
git config --system --add safe.directory $final_path
# Download, check integrity, uncompress and patch the source from app.src
git clone $REPOSITORY $final_path --quiet
pushd "$final_path"

View file

@ -81,6 +81,7 @@ then
# Download, check integrity, uncompress and patch the source from app.src
pushd "$final_path"
git config --system --add safe.directory $final_path
git checkout master
git pull --quiet
git checkout $COMMIT --quiet