Re: [GSoC][PATCH 3/4] repo: add path.gitdir with absolute and relative suffix formatting
- From
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
- Date
- Jun 1, 2026, 16:28 UTC
- Message-ID
- <FE164E62-C086-4902-B21F-157CD2C4ED0E@gmail.com>
- In-Reply-To
- <20260601151950.30686-4-jayatheerthkulkarni2005@gmail.com>
Show 8 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`