Skip to content

Add environment variable inheritance to git status and branch API calls #1417

New issue

Have 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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nsingl00
Copy link

Several git subprocess calls in the status and branch APIs were not inheriting the parent process environment variables, which could cause git commands to fail when custom environment configurations are needed (e.g., custom PATH, GIT_*
variables, proxy settings, or authentication tokens).

Added env=os.environ.copy() parameter to the following subprocess calls:

  • Status API (git.py:status() method):
  • Branch API:

Issue: #1416

Copy link

Binder 👈 Launch a Binder on branch nsingl00/jupyterlab-git/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git Status and Branch APIs Don't Use Current Environment Variables - Missing os.environ.copy()
2 participants