MCPcopy
hub / github.com/wandb/openui / get_git_user_email

Function get_git_user_email

backend/openui/util/email.py:4–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def 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

Callers 2

get_sessionFunction · 0.50
getMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected