mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Improve branch display, show corresponding commit
This commit is contained in:
parent
24524d3cb5
commit
6ea5b2ff88
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue