]>
Commit | Line | Data |
---|---|---|
ca74c458 JK |
1 | #!/bin/sh |
2 | ||
3 | test_description='remote push rejects are reported by client' | |
4 | ||
1fdd31cf | 5 | TEST_PASSES_SANITIZE_LEAK=true |
ca74c458 JK |
6 | . ./test-lib.sh |
7 | ||
8 | test_expect_success 'setup' ' | |
7da7f63c | 9 | test_hook update <<-\EOF && |
fb23bd7a ES |
10 | exit 1 |
11 | EOF | |
ca74c458 JK |
12 | echo 1 >file && |
13 | git add file && | |
14 | git commit -m 1 && | |
15 | git clone . child && | |
16 | cd child && | |
17 | echo 2 >file && | |
18 | git commit -a -m 2 | |
19 | ' | |
20 | ||
d492b31c | 21 | test_expect_success 'push reports error' 'test_must_fail git push 2>stderr' |
ca74c458 JK |
22 | |
23 | test_expect_success 'individual ref reports error' 'grep rejected stderr' | |
24 | ||
25 | test_done |