about summary refs log tree commit diff
path: root/third_party/git/t/t4204-patch-id.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t4204-patch-id.sh')
-rwxr-xr-xthird_party/git/t/t4204-patch-id.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/git/t/t4204-patch-id.sh b/third_party/git/t/t4204-patch-id.sh
index 0288c17ec60b..8ff8bd84c75e 100755
--- a/third_party/git/t/t4204-patch-id.sh
+++ b/third_party/git/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.