Merge branch 'gc/discover-not-setup'

discover_git_directory() no longer touches the_repository.

* gc/discover-not-setup:
  setup.c: don't setup in discover_git_directory()
maint
Junio C Hamano 2023-06-23 11:21:16 -07:00
commit 01202f5f68
1 changed files with 0 additions and 8 deletions

View File

@ -1422,14 +1422,6 @@ int discover_git_directory(struct strbuf *commondir,
return -1;
}

the_repository->repository_format_worktree_config =
candidate.worktree_config;

/* take ownership of candidate.partial_clone */
the_repository->repository_format_partial_clone =
candidate.partial_clone;
candidate.partial_clone = NULL;

clear_repository_format(&candidate);
return 0;
}