path: root/repository.c
diff options
authorNguyễn Thái Ngọc Duy <>2018-03-03 11:35:58 (GMT)
committerJunio C Hamano <>2018-03-05 19:14:04 (GMT)
commit2bee50a083fbf549c3f062a2f89c6e636f532762 (patch)
tree8f01b86f0f99e19522ecce9201ed26d00bb8454d /repository.c
parent7bc0dcaa6120efec8cf8caef8511c09d35dbcf09 (diff)
repository: delete ignore_env member
This variable was added because the repo_set_gitdir() was created to cover both submodule and main repos, but these two are initialized a bit differently so ignore_env == 0 means main repo, while ignore_env != 0 is submodules. Since the difference part (env variables) has been moved out of repo_set_gitdir(), this function works the same way for both repo types and ignore_env is not needed anymore. Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'repository.c')
1 files changed, 0 insertions, 2 deletions
diff --git a/repository.c b/repository.c
index 04d85a2..62f52f4 100644
--- a/repository.c
+++ b/repository.c
@@ -140,8 +140,6 @@ static int repo_init(struct repository *repo,
struct repository_format format;
memset(repo, 0, sizeof(*repo));
- repo->ignore_env = 1;
if (repo_init_gitdir(repo, gitdir))
goto error;