parse-options: document bracketing of argh
[git/debian.git] / t / t5406-remote-rejects.sh
blob5c509db6fc378ebf646833d349ef12fd192f2774
1 #!/bin/sh
3 test_description='remote push rejects are reported by client'
5 . ./test-lib.sh
7 test_expect_success 'setup' '
8 write_script .git/hooks/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
20 test_expect_success 'push reports error' 'test_must_fail git push 2>stderr'
22 test_expect_success 'individual ref reports error' 'grep rejected stderr'
24 test_done