Skip to content

Commit

Permalink
try $(pwd) -> $PWD
Browse files Browse the repository at this point in the history
See https://lore.kernel.org/git/220628.865yklgr6g.gmgdl@evledraar.gmail.com/

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  • Loading branch information
avar committed Jun 30, 2022
1 parent cf015fe commit 606d006
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t5339-no-lazy-fetch-with-commit-graph.sh
Expand Up @@ -18,7 +18,7 @@ test_expect_success 'setup: prepare a repository with a commit' '

test_expect_success 'setup: prepare a repository with commit-graph contains the commit' '
git init with-commit-graph &&
echo "$(pwd)/with-commit/.git/objects" \
echo "$PWD/with-commit/.git/objects" \
>with-commit-graph/.git/objects/info/alternates &&
# create a ref that points to the commit in alternates
git -C with-commit-graph update-ref refs/ref_to_the_commit "$oid" &&
Expand All @@ -30,7 +30,7 @@ test_expect_success 'setup: prepare a repository with commit-graph contains the

test_expect_success 'setup: change the alternates to what without the commit' '
git init --bare without-commit &&
echo "$(pwd)/without-commit/objects" \
echo "$PWD/without-commit/objects" \
>with-commit-graph/.git/objects/info/alternates &&
test_must_fail git -C with-commit-graph cat-file -e $oid
'
Expand All @@ -41,10 +41,10 @@ test_expect_success 'setup: prepare any commit to fetch' '
'

test_expect_success 'fetch any commit from promisor with the usage of the commit graph' '
git -C with-commit-graph remote add origin "$(pwd)/with-commit" &&
git -C with-commit-graph remote add origin "$PWD/with-commit" &&
git -C with-commit-graph config remote.origin.promisor true &&
git -C with-commit-graph config remote.origin.partialclonefilter blob:none &&
run_with_limited_processses env GIT_TRACE="$(pwd)/trace" \
run_with_limited_processses env GIT_TRACE="$PWD/trace" \
git -C with-commit-graph fetch origin $anycommit 2>err &&
test_i18ngrep ! "fatal: promisor-remote: unable to fork off fetch subprocess" err &&
test $(grep "fetch origin" trace | wc -l) -eq 1
Expand Down

0 comments on commit 606d006

Please sign in to comment.