Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t6136-pathspec-in-bare.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t6136-pathspec-in-bare.sh` 38 lines ยท 825 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='diagnosing out-of-scope pathspec' 4 5 . ./test-lib.sh 6 7 test_expect_success 'setup a bare and non-bare repository' ' 8 test_commit file1 && 9 git clone --bare . bare 10 ' 11 12 test_expect_success 'log and ls-files in a bare repository' ' 13 ( 14 cd bare && 15 test_must_fail git log -- .. >out 2>err && 16 test_must_be_empty out && 17 test_grep "outside repository" err && 18 19 test_must_fail git ls-files -- .. >out 2>err && 20 test_must_be_empty out && 21 test_grep "outside repository" err 22 ) 23 ' 24 25 test_expect_success 'log and ls-files in .git directory' ' 26 ( 27 cd .git && 28 test_must_fail git log -- .. >out 2>err && 29 test_must_be_empty out && 30 test_grep "outside repository" err && 31 32 test_must_fail git ls-files -- .. >out 2>err && 33 test_must_be_empty out && 34 test_grep "outside repository" err 35 ) 36 ' 37 38 test_done