Re: [PATCH 1/2] setup.c: initialize the_repository correctly in all cases

2018-02-23 Thread Duy Nguyen
On Sat, Feb 24, 2018 at 5:17 AM, brian m. carlson wrote: > On Fri, Feb 23, 2018 at 04:56:39PM +0700, Nguyễn Thái Ngọc Duy wrote: >> [3] the reason server side is still running ok with no hash algo >> before [2] is because the programs that use enter_repo() do very >> little then spawn a ne

Re: [PATCH 1/2] setup.c: initialize the_repository correctly in all cases

2018-02-23 Thread brian m. carlson
On Fri, Feb 23, 2018 at 04:56:39PM +0700, Nguyễn Thái Ngọc Duy wrote: > [3] the reason server side is still running ok with no hash algo > before [2] is because the programs that use enter_repo() do very > little then spawn a new program (like pack-objects or > upload-archive) to do the

[PATCH 1/2] setup.c: initialize the_repository correctly in all cases

2018-02-23 Thread Nguyễn Thái Ngọc Duy
There are many ways for any command to access a git repository: - most of them will try to discover the .git dir via setup_git_directory() and friends - the server side programs already know where the repo is and prepare with enter_repo() - special commands that deal with repo creation (init