Re: [PATCH v9r2 1/2] add `config_set` API for caching config-like files
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jul 17, 2014, 10:01 UTC
- Message-ID
- <vpqvbqwpalt.fsf@anie.imag.fr>
- In-Reply-To
- <53C6C2BD.3030703@gmail.com>
Tanay Abhra <tanayabh@gmail.com> writes:
Show 11 quoted lines
> I have a question about renaming git_config() to git_config_raw(). > I was working on a patch and I am getting stuck here. > It fails in t1001, t1020 & t4018. The reason for the last test failure > is unknown right now. For the first two, it boils down to this, > > git init --bare bare-ancestor-aliased.git && > cd bare-ancestor-aliased.git && > echo "[alias] aliasedinit = init" >>config && > mkdir plain-nested && > cd plain-nested && > git aliasedinit
Git tries to read .git/config relative to the current directory, and tries to resolve aliases from it. The problem is: if one tries to do this from a subdirectory inside the repo, .git/config is not the right path, and the alias lookup fails.
I'll investigate more later.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/