We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contactedHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| @@ -0,0 +1,13 @@ | ||
| import subprocess | ||
| import sys | ||
|
|
||
| import git | ||
|
|
||
|
|
||
| _, working_dir, env_var_name = sys.argv | ||
|
|
||
| # Importing git should be enough, but this really makes sure Git.execute is called. | ||
| repo = git.Repo(working_dir) # Hold the reference. | ||
| git.Git(repo.working_dir).execute(["git", "version"]) | ||
|
|
||
| print(subprocess.check_output(["set", env_var_name], shell=True, text=True)) |
Uh oh!
There was an error while loading. Please reload this page.