environment: move `set_git_dir()` and related into setup layer
commita52beae3a319e8133be0fe245e5fb3b9e7d8d9fb
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Sep 2024 11:29:54 +0000 (12 13:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 17:15:41 +0000 (12 10:15 -0700)
treef130e8073622c4abd7bdb048c9102520856dbf7d
parentc22d183b01417f996307de0c3923811b66a44ae7
environment: move `set_git_dir()` and related into setup layer

The functions `set_git_dir()` and friends are used to set up
repositories. As such, they are quite clearly part of the setup
subsystem, but still live in "environment.c". Move them over, which also
helps to get rid of dependencies on `the_repository` in the environment
subsystem.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c
environment.h
setup.c
setup.h