Skip to content

Commit 27252b7

Browse files
committed
Fix pre-push-hook regexes
1 parent f2c869a commit 27252b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/verify-commits/pre-push-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
if ! [[ "$2" =~ [git@]?[www.]?github.com[:|/]bitcoin/bitcoin[.git]? ]]; then
2+
if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)bitcoin/bitcoin(.git)?$ ]]; then
33
exit 0
44
fi
55

0 commit comments

Comments
 (0)