Re: [GSoC][PATCH 3/4] repo: add path.gitdir with absolute and relative suffix formatting
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com> writes:
Show 12 quoted lines
>> +test_repo_info_path () {
>> + field_name=$1
>> + expect_relative=$2
>> +
>> + test_expect_success "query individual key: path.$field_name.absolute" '
>> + (
>> + cd test-repo/sub &&
>> + expect_absolute=$(cd .. && pwd)/.git &&
>
> Note that this semi-hardcoded path won't work for other values (e.g.
> top level dir, superproject working tree). This needs to be a parameter
> just like `expect_relative`Good thinking. Thanks for carefully reading.