man pages are littered with .ft C and others
[git/git-p4.git] / t / t5406-remote-rejects.sh
blob46b2cb4e46d9d8bb2ae8cf2ea5d6b03331d4ac05
1 #!/bin/sh
3 test_description='remote push rejects are reported by client'
5 . ./test-lib.sh
7 test_expect_success 'setup' '
8 mkdir .git/hooks &&
9 (echo "#!/bin/sh" ; echo "exit 1") >.git/hooks/update &&
10 chmod +x .git/hooks/update &&
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' '! git push 2>stderr'
22 test_expect_success 'individual ref reports error' 'grep rejected stderr'
24 test_done