3 # Copyright (c) 2006 David Kågedal
6 test_description
='Exercise push conflicts.
8 Test that the index has no modifications after a push with conflicts.
14 'Initialize the StGIT repository' \
19 'Create the first patch' \
30 'Create the second patch' \
39 'Push the first patch with conflict' \
45 'Show the, now empty, first patch' \
47 ! stg show foo | grep -q -e "^diff "
51 'Check that the index has the non-conflict updates' \
53 git diff --cached --stat | grep -q -e "^ test2 | *1 "
57 'Check that pop will fail while there are unmerged conflicts' \
63 'Resolve the conflict' \
65 echo resolved > test &&