Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/vcs: use limited environment when executing git in tests
We don't want git environment variables like `$GIT_DIR` to cause the test to fail. This change was prompted by the fact that running `git rebase --exec` causes the test to fail because it sets `$DIR_DIR` which overrides the current directory, causing `git init` to use the wrong directory to create the `.git` directory in. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Ia17380a313a88fb525933c7ae6ef389f1042d67a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193380 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information