X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft2050-git-dir-relative.sh;h=21f4659a9d1c22fcc8c9eb3261315d67988dad2f;hb=19a6cd372a998df3079d870e02c064c5bb101841;hp=b7131d8c08daf20f328dd7f9ce7a1118a734516b;hpb=03f94ae9f909952ed5a78917ab319a312889354b;p=git.git diff --git a/t/t2050-git-dir-relative.sh b/t/t2050-git-dir-relative.sh index b7131d8c0..21f4659a9 100755 --- a/t/t2050-git-dir-relative.sh +++ b/t/t2050-git-dir-relative.sh @@ -26,7 +26,7 @@ chmod +x .git/hooks/post-commit' test_expect_success 'post-commit hook used ordinarily' ' echo initial >top && -git add top +git add top && git commit -m initial && test -r "${COMMIT_FILE}" ' @@ -45,7 +45,7 @@ test -r "${COMMIT_FILE}" rm -rf "${COMMIT_FILE}" test_expect_success 'post-commit-hook from sub dir' ' -echo changed again >top +echo changed again >top && cd subdir && git --git-dir .git --work-tree .. add ../top && git --git-dir .git --work-tree .. commit -m subcommit &&