Re: [GSoC Patch 1/7] repo: add path.toplevel with absolute and relative suffix formatting
Lucas Seiki Oshiro <[email protected]>
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
> > +test_expect_success 'path.toplevel absolute and relative' ' > + test_when_finished "rm -rf repo" && > + git init repo && > + ( > + mkdir -p repo/sub && > + cd repo/sub && > + > + ROOT="$(test-tool path-utils real_path ..)" && > + > + echo "path.toplevel.absolute=$ROOT" >expect.abs && > + git repo info path.toplevel.absolute >actual.abs && > + test_cmp expect.abs actual.abs && > + > + echo "path.toplevel.relative=../" >expect.rel && > + git repo info path.toplevel.relative >actual.rel && > + test_cmp expect.rel actual.rel > + ) > +' Question: why not use `test_repo_info_path` here?