Skip to content

Commit e26e905

Browse files
authored
Add email & domains info - check_git_config_email
Indicating git config email and expected domains info after "Git config email is from an unexpected domain.".
1 parent bd7619b commit e26e905

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pre_commit_hooks/check_git_config_email.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def main(argv=None):
3333
user_email = user_email.decode().strip()
3434
if not any((user_email.endswith(x) for x in args.domains)):
3535
print("Git config email is from an unexpected domain.")
36+
print("Git config email: " + user_email)
37+
print("Expected domains: " + str(args.domains))
3638
retval = 1
3739

3840
return retval

0 commit comments

Comments
 (0)