diff options
| author | Andrew Donnellan <ajd@linux.ibm.com> | 2019-12-12 17:04:58 +1100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-12-12 09:56:25 +0100 |
| commit | 08003f6440deafc4e193b159c4acece64f7864b1 (patch) | |
| tree | 6c788af0742acb9a0f3d5fc6daf4fa1d8c8cadab /docs/linux/external_fuzzing_usb.md | |
| parent | df191c7fd0bb6b36fbf55791a49f3c1daa3135e9 (diff) | |
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>
Diffstat (limited to 'docs/linux/external_fuzzing_usb.md')
0 files changed, 0 insertions, 0 deletions
