Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not change global env #675

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fxposter
Copy link
Contributor

@fxposter fxposter commented Oct 25, 2023

Your checklist for this pull request

馃毃Please review the guidelines for contributing to this repository.

  • Ensure all commits include DCO sign-off.
  • Ensure that your contributions pass unit testing.
  • Ensure that your contributions contain documentation if applicable.

Description

Do not change ENV variables of a current process. Instead pass relevant environment to the actual shell command being run.

this PR is built on top of #673

Instead pass relevant environment to the actual shell command being run

Signed-off-by: James Couball <jcouball@yahoo.com>
@jcouball jcouball force-pushed the do-not-change-global-env branch 3 times, most recently from 106d8e8 to 4a969a0 Compare December 27, 2023 02:10
Signed-off-by: James Couball <jcouball@yahoo.com>
@jcouball jcouball force-pushed the do-not-change-global-env branch 2 times, most recently from d029e4c to 3e12987 Compare December 27, 2023 02:20
Signed-off-by: James Couball <jcouball@yahoo.com>
@maths22
Copy link

maths22 commented Jan 11, 2024

Some version of this would be nice to have: the current global env version in practice means only one git operation can run at a time per process, which is rather inconvenient. Unless I'm missing something, based on what was merged in #673 I think this can be changed to just have "option 2" (capture2/popen2) and is then probably in a good state?

@jcouball
Copy link
Member

@maths22

All methods I have tried did not work for one reason or another in JRuby on Windows.

I have released git-2.0.0-pre1 which I believe will address this issue in a different way. You can see PR #684 for details. This version still does not support JRuby for Windows, but I believe there is a path to victory there.

The API of this gem is unchanged. All the changes are below the hood.

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

Successfully merging this pull request may close these issues.

None yet

3 participants