()
| 2 | |
| 3 | |
| 4 | def get_git_user_email(): |
| 5 | try: |
| 6 | # Run the git command to get the email |
| 7 | result = subprocess.run( |
| 8 | ["git", "config", "--global", "user.email"], |
| 9 | check=True, |
| 10 | stdout=subprocess.PIPE, |
| 11 | stderr=subprocess.PIPE, |
| 12 | text=True, |
| 13 | ) |
| 14 | email = result.stdout.strip() |
| 15 | return email |
| 16 | except subprocess.CalledProcessError: |
| 17 | return None |
no outgoing calls
no test coverage detected