repo.or.cz
/
libgit2
/
github.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
eb22b60
)
cli: fix benchmark commit interrogation
author
Edward Thomson
<
[email protected]
>
Sun, 2 Mar 2025 08:56:38 +0000
(2 08:56 +0000)
committer
Edward Thomson
<
[email protected]
>
Sun, 2 Mar 2025 08:56:38 +0000
(2 08:56 +0000)
Don't fail the benchmark script if we can't identify the CLI commit.
tests/benchmarks/benchmark.sh
patch
|
blob
|
blame
|
history
diff --git
a/tests/benchmarks/benchmark.sh
b/tests/benchmarks/benchmark.sh
index
e82eaab
..
4717591
100755
(executable)
--- a/
tests/benchmarks/benchmark.sh
+++ b/
tests/benchmarks/benchmark.sh
@@
-126,7
+126,7
@@
cli_commit() {
BUILD_OPTIONS=$("$1" version --build-options)
fi
- echo "${BUILD_OPTIONS}" |
grep '^built from commit: '
| sed -e 's/^built from commit: //'
+ echo "${BUILD_OPTIONS}" |
{ grep '^built from commit: ' || echo "unknown"; }
| sed -e 's/^built from commit: //'
}
TEST_CLI_NAME=$(basename "${TEST_CLI}")