t / t5518-fetch-exit-status.shon commit Merge branch 'jk/archive-zip-userdiff-config' (0f650e1)
   1#!/bin/sh
   2#
   3# Copyright (c) 2008 Dmitry V. Levin
   4#
   5
   6test_description='fetch exit status test'
   7
   8. ./test-lib.sh
   9
  10test_expect_success setup '
  11
  12        >file &&
  13        git add file &&
  14        git commit -m initial &&
  15
  16        git checkout -b side &&
  17        echo side >file &&
  18        git commit -a -m side &&
  19
  20        git checkout master &&
  21        echo next >file &&
  22        git commit -a -m next
  23'
  24
  25test_expect_success 'non-fast-forward fetch' '
  26
  27        test_must_fail git fetch . master:side
  28
  29'
  30
  31test_expect_success 'forced update' '
  32
  33        git fetch . +master:side
  34
  35'
  36
  37test_done