Test "stg status" with -M in stgit.diff-opts
[stgit] / t / t1501-sink.sh
CommitLineData
205b1af9
KH
1#!/bin/sh
2
3test_description='Test "stg sink"'
4
5. ./test-lib.sh
6
7test_expect_success 'Initialize StGit stack' '
8 echo 000 >> x &&
9 git add x &&
10 git commit -m initial &&
11 echo 000 >> y &&
12 git add y &&
13 git commit -m y &&
14 stg init &&
15 stg uncommit &&
16 stg pop
17'
18
19test_expect_success 'sink without applied patches' '
20 ! stg sink
21'
22
cd65a83b 23test_expect_success 'sink a specific patch without applied patches' '
205b1af9
KH
24 stg sink y &&
25 test $(echo $(stg applied)) = "y"
26'
27
28test_done