X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft2050-git-dir-relative.sh;h=21f4659a9d1c22fcc8c9eb3261315d67988dad2f;hb=a48fcd836971d065b9bf16b8cd046fd1aff9b279;hp=b7131d8c08daf20f328dd7f9ce7a1118a734516b;hpb=00648ba0505bbe1999bb6ae2f1d02a0ef923b191;p=thirdparty%2Fgit.git diff --git a/t/t2050-git-dir-relative.sh b/t/t2050-git-dir-relative.sh index b7131d8c08..21f4659a9d 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 &&