t / t5406-remote-rejects.shon commit i18n: make GETTEXT_POISON a runtime option (6cdccfc)
   1#!/bin/sh
   2
   3test_description='remote push rejects are reported by client'
   4
   5. ./test-lib.sh
   6
   7test_expect_success 'setup' '
   8        mkdir .git/hooks &&
   9        write_script .git/hooks/update <<-\EOF &&
  10        exit 1
  11        EOF
  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
  21test_expect_success 'push reports error' 'test_must_fail git push 2>stderr'
  22
  23test_expect_success 'individual ref reports error' 'grep rejected stderr'
  24
  25test_done