stg new foo -m foo &&
echo foo > test &&
echo fie > test2 &&
- stg add test test2 &&
+ git add test test2 &&
stg refresh &&
stg pop
'
'
stg new bar -m bar &&
echo bar > test &&
- stg add test &&
+ git add test &&
stg refresh
'
test_expect_success \
'Push the first patch with conflict' \
'
- ! stg push foo
+ conflict_old stg push foo
'
test_expect_success \
git diff --cached --stat | grep -q -e "^ test2 | *1 "
'
+test_expect_success \
+ 'Check that pop will fail while there are unmerged conflicts' \
+ '
+ command_error stg pop
+ '
+
test_expect_success \
'Resolve the conflict' \
'