8000 Merge pull request #7042 from libgit2/ethomson/benchmark · timonvo/libgit2@1c48549 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c48549

Browse files
authored
Merge pull request libgit2#7042 from libgit2/ethomson/benchmark
2 parents eb22b60 + 48d031f commit 1c48549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/benchmarks/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ cli_commit() {
126126
BUILD_OPTIONS=$("$1" version --build-options)
127127
fi
128128

129-
echo "${BUILD_OPTIONS}" | grep '^built from commit: ' | sed -e 's/^built from commit: //'
129+
echo "${BUILD_OPTIONS}" | { grep '^built from commit: ' || echo "unknown"; } | sed -e 's/^built from commit: //'
130130
}
131131

132132
TEST_CLI_NAME=$(basename "${TEST_CLI}")

0 commit comments

Comments
 (0)
0