File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def tmp_commitizen_project(tmp_git_project):
28
28
def _get_gpg_keyid (signer_mail ):
29
29
_new_key = cmd .run (f"gpg --list-secret-keys { signer_mail } " )
30
30
_m = re .search (
31
- rf "[a-zA-Z0-9 \[\]-_]*{ os . linesep } [ ]*([0-9A-Za-z]*){ os . linesep } [ { os . linesep } a -zA-Z0-9 \[\]-_<>@]*" ,
31
+ r "[a-zA-Z0-9 \[\]-_]*\n [ ]*([0-9A-Za-z]*)\n[\na -zA-Z0-9 \[\]-_<>@]*" ,
32
32
_new_key .out ,
33
33
)
34
34
return _m .group (1 ) if _m else None
@@ -42,8 +42,8 @@ def tmp_commitizen_project_with_gpg(tmp_commitizen_project):
42
42
# create a temporary GPGHOME to store a temporary keyring.
43
43
# Home path must be less than 104 characters
44
44
gpg_home = tempfile .TemporaryDirectory (suffix = "_cz" )
45
- # os.environ["GNUPGHOME"] = gpg_home. name # tempdir = temp keyring
46
- # os.environ["HOMEDIR "] = gpg_home.name
45
+ if os .name != "nt" :
46
+ os .environ ["GNUPGHOME " ] = gpg_home .name # tempdir = temp keyring
47
47
48
48
# create a key (a keyring will be generated within GPUPGHOME)
49
49
c = cmd .run (
You can’t perform that action at this time.
0 commit comments