syzkaller/pkg/vcs
Andrew Donnellan 08003f6440 pkg/vcs: Unset various git environment variables when invoking git
If you try to run git-using tests while the GIT_DIR environment variable
(and GIT_WORK_TREE, etc) happens to be set, the tests are going to do fun
and exciting things on a repository that isn't the test repository it tries
to set up.

As it turns out, if you try to run "make test" using git rebase -x, you'll
end up with GIT_DIR set to the syzkaller tree. Hilarity ensues.

Unset GIT_DIR, GIT_WORK_TREE and a few other environment variables when
invoking git - that way it'll default to looking at the working directory
that we have given it, which is what we expect.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
2019-12-12 09:56:25 +01:00
..
akaros.go pkg/vcs: refactor bisection support 2019-03-17 18:06:44 +01:00
freebsd.go pkg/vcs: remove unused functions 2019-03-20 10:34:16 +01:00
fuchsia.go pkg/vcs: fix fuchsia's git repo directory. 2019-03-21 09:10:48 +01:00
git_repo_test.go pkg/bisect: add test for #1527 2019-12-10 12:35:10 +01:00
git_test_util.go pkg/vcs: Unset various git environment variables when invoking git 2019-12-12 09:56:25 +01:00
git_test.go pkg/vcs: don't CC people on CC (sic) 2019-12-10 12:35:10 +01:00
git.go pkg/vcs: Unset various git environment variables when invoking git 2019-12-12 09:56:25 +01:00
linux.go pkg/report: use --git-min-percent=15 for get_maintainer.pl 2019-12-10 12:35:10 +01:00
netbsd.go pkg/vcs: refactor bisection support 2019-03-17 18:06:44 +01:00
openbsd.go pkg/vcs: refactor bisection support 2019-03-17 18:06:44 +01:00
testos.go pkg/vcs: make EnvForCommit return full compiler path 2019-10-22 15:41:03 +02:00
vcs_test.go docs, pkg/vcs, sys/fuchsia: update fuchsia urls 2019-03-20 07:50:58 +01:00
vcs.go pkg/vcs: Unset various git environment variables when invoking git 2019-12-12 09:56:25 +01:00