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/t5406-remote-rejects.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 / t5406-remote-rejects.sh` 24 lines ยท 459 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='remote push rejects are reported by client' 4 5 . ./test-lib.sh 6 7 test_expect_success 'setup' ' 8 test_hook update <<-\EOF && 9 exit 1 10 EOF 11 echo 1 >file && 12 git add file && 13 git commit -m 1 && 14 git clone . child && 15 cd child && 16 echo 2 >file && 17 git commit -a -m 2 18 ' 19 20 test_expect_success 'push reports error' 'test_must_fail git push 2>stderr' 21 22 test_expect_success 'individual ref reports error' 'test_grep rejected stderr' 23 24 test_done