Thread (82 messages) 82 messages, 6 authors, 4d ago

Re: [GSoC][PATCH 3/4] repo: add path.gitdir with absolute and relative suffix formatting

From: Junio C Hamano <hidden>
Date: 2026-06-01 23:09:11

Lucas Seiki Oshiro [off-list ref] writes:
quoted
+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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help