mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
test
This commit is contained in:
@@ -122,20 +122,10 @@ cli_version() {
|
||||
fi
|
||||
}
|
||||
|
||||
cli_commit() {
|
||||
if [[ "$(uname -s)" == "MINGW"* ]]; then
|
||||
BUILD_OPTIONS=$($(cygpath -u "$1") version --build-options)
|
||||
else
|
||||
BUILD_OPTIONS=$("$1" version --build-options)
|
||||
fi
|
||||
|
||||
echo "${BUILD_OPTIONS}" | grep '^built from commit: ' | sed -e 's/^built from commit: //'
|
||||
}
|
||||
|
||||
TEST_CLI_NAME=$(basename "${TEST_CLI}")
|
||||
TEST_CLI_PATH=$(fullpath "${TEST_CLI}")
|
||||
TEST_CLI_VERSION=$(cli_version "${TEST_CLI}")
|
||||
TEST_CLI_COMMIT=$(cli_commit "${TEST_CLI}")
|
||||
TEST_CLI_COMMIT="unknown"
|
||||
|
||||
if [ "${BASELINE_CLI}" != "" ]; then
|
||||
if [[ "${BASELINE_CLI}" == "/"* ]]; then
|
||||
@@ -147,7 +137,7 @@ if [ "${BASELINE_CLI}" != "" ]; then
|
||||
BASELINE_CLI_NAME=$(basename "${BASELINE_CLI}")
|
||||
BASELINE_CLI_PATH=$(fullpath "${BASELINE_CLI}")
|
||||
BASELINE_CLI_VERSION=$(cli_version "${BASELINE_CLI}")
|
||||
BASELINE_CLI_COMMIT=$(cli_commit "${BASELINE_CLI}")
|
||||
BASELINE_CLI_COMMIT="unknown"
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user