git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
cb78f4f
)
t4204: make hash size independent
author
brian m. carlson
<redacted>
Sat, 21 Dec 2019 19:49:22 +0000
(19:49 +0000)
committer
Junio C Hamano
<redacted>
Wed, 15 Jan 2020 22:06:19 +0000
(14:06 -0800)
Use $OID_REGEX instead of a hard-coded regular expression.
Signed-off-by: brian m. carlson <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t4204-patch-id.sh
patch
|
blob
|
history
diff --git
a/t/t4204-patch-id.sh
b/t/t4204-patch-id.sh
index 0288c17ec60b803d2815fb1b704c35f74e4a7753..8ff8bd84c75e0fd4fd4c75e911b6abfca18a70fc 100755
(executable)
--- a/
t/t4204-patch-id.sh
+++ b/
t/t4204-patch-id.sh
@@
-25,7
+25,7
@@
test_expect_success 'setup' '
test_expect_success 'patch-id output is well-formed' '
git log -p -1 | git patch-id >output &&
- grep "^
[a-f0-9]\{40\}
$(git rev-parse HEAD)$" output
+ grep "^
$OID_REGEX
$(git rev-parse HEAD)$" output
'
#calculate patch id. Make sure output is not empty.
git clone https://git.99rst.org/PROJECT