Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

gps: unset some GIT_* variables for git operations #1872

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

sigma
Copy link
Contributor

@sigma sigma commented May 22, 2018

What does this do / why do we need it?

This fixes 2 classes of bugs:

  • running unit tests as part of a git rebase invocation
  • running dep from a repository that has a separate GIT_DIR/GIT_WORK_TREE

What should your reviewer look out for in this PR?

the location of the code might not be ideal.

Do you need help or clarification on anything?

Which issue(s) does this PR fix?

fixes #1871

This fixes 2 classes of bugs:
- running unit tests as part of a git rebase invocation
- running dep from a repository that has a separate GIT_DIR/GIT_WORK_TREE
@sigma sigma requested a review from sdboyer as a code owner May 22, 2018 21:00
@sigma
Copy link
Contributor Author

sigma commented May 22, 2018

note: #1868 is closely related

Copy link
Member

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great catch, it never occurred to me to excise these vars. Thanks!

@sdboyer sdboyer merged commit 1cfcdf7 into golang:master Jul 2, 2018
@sigma sigma deleted the pr/fix-rebase-exec-2 branch July 2, 2018 03:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dep gets confused by internal git environment variables
3 participants