chiark / gitweb /
Autosign newly created patches
[stgit] / t / t1501-sink.sh
1 #!/bin/sh
2
3 test_description='Test "stg sink"'
4
5 . ./test-lib.sh
6
7 test_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
19 test_expect_success 'sink without applied patches' '
20     command_error stg sink
21 '
22
23 test_expect_success 'sink a specific patch without applied patches' '
24     stg sink y &&
25     test $(echo $(stg series --applied --noprefix)) = "y"
26 '
27
28 test_done