get_deps: run git without an inherited GIT_DIR

Under a hook or rebase --exec, GIT_DIR outranks -C, so init, fetch and
checkout acted on the superproject instead of the dependency.

Fixes #4033
2 files changed