hooks(pre-push): do not require .git when matching enterprise origin URLs

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
Vault Automation 2026-02-06 15:09:47 -05:00 committed by GitHub
parent 2164f0968d
commit eb7797ca36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ fail() {
# that of hashicorp/vault-enterprise, otherwise it returns 1.
remote_url_is_enterprise() {
case "$1" in
git@github.com:hashicorp/vault-enterprise.git | https://github.com/hashicorp/vault-enterprise.git)
git@github.com:hashicorp/vault-enterprise* | https://github.com/hashicorp/vault-enterprise*)
return 0
;;
*)