diff --git a/bin/git-c b/bin/git-c index 0a13189..79520d0 100755 --- a/bin/git-c +++ b/bin/git-c @@ -11,7 +11,7 @@ git committerconfig ### Commit signingkey=$(git config user.signingkey) -if [[ $signingkey =~ ^(ssh|ecdsa) ]]; then +if [[ $signingkey =~ ^(ssh|ecdsa|key::) ]]; then step "Loading ssh key into agent..." vault-sshadd $(cut -d ' ' -f 3 <<<"${signingkey}") else diff --git a/bin/git-committerconfig b/bin/git-committerconfig index 77792ca..7bf83f2 100755 --- a/bin/git-committerconfig +++ b/bin/git-committerconfig @@ -42,7 +42,7 @@ def main(): if 'signingkey' in combi and combi['signingkey'] != '': set_local_config('user.signingkey', combi['signingkey']) set_local_config('gpg.format', 'ssh' if re.search( - r'^(?:ssh|ecdsa)', combi['signingkey']) else 'openpgp') + r'^(?:ssh|ecdsa|key::)', combi['signingkey']) else 'openpgp') if 'commit-opts' in combi: set_local_config('commit.cliopts', combi['commit-opts'])