t / t3509-cherry-pick-merge-df.shon commit Merge branch 'mg/reset-doc' (a6fa2a8)
   1#!/bin/sh
   2
   3test_description='Test cherry-pick with directory/file conflicts'
   4. ./test-lib.sh
   5
   6test_expect_success SYMLINKS 'Setup rename across paths each below D/F conflicts' '
   7        mkdir a &&
   8        >a/f &&
   9        git add a &&
  10        git commit -m a &&
  11
  12        mkdir b &&
  13        ln -s ../a b/a &&
  14        git add b &&
  15        git commit -m b &&
  16
  17        git checkout -b branch &&
  18        rm b/a &&
  19        mv a b/a &&
  20        ln -s b/a a &&
  21        git add . &&
  22        git commit -m swap &&
  23
  24        >f1 &&
  25        git add f1 &&
  26        git commit -m f1
  27'
  28
  29test_expect_success SYMLINKS 'Cherry-pick succeeds with rename across D/F conflicts' '
  30        git reset --hard &&
  31        git checkout master^0 &&
  32        git cherry-pick branch
  33'
  34
  35test_done