Improve branch display, show corresponding commit

This commit is contained in:
Alexandre Aubin 2021-01-21 22:05:19 +01:00
parent 24524d3cb5
commit 6ea5b2ff88

View file

@ -232,8 +232,7 @@ function fetch_package_to_test() {
path_to_package_to_test="${path_to_package_to_test%%/tree/*}"
fi
log_info "Testing the package $path_to_package_to_test"
[ -n "$gitbranch" ] && log_info " on the branch ${gitbranch##-b }"
log_info "Testing package $path_to_package_to_test"
package_path="$TEST_CONTEXT/app_folder"
@ -255,9 +254,14 @@ function fetch_package_to_test() {
fi
fi
fi
log_info " on branch ${gitbranch##-b }"
# Clone the repository
git clone --quiet $path_to_package_to_test $gitbranch "$package_path"
log_info " (commit $(git -C $package_path rev-parse HEAD))"
# If it's a local directory
else
# Do a copy in the directory of Package check