chiark / gitweb /
Remove an unnecessary parameter to make_patch_name
[stgit] / t / t1003-new.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2007 Karl Hasselström
4 #
5
6 test_description='Test the new command.
7
8 '
9
10 . ./test-lib.sh
11
12 test_expect_success \
13     'Initialize the StGIT repository' '
14     stg init
15 '
16
17 test_expect_success \
18     'Create a named patch' '
19     stg new foo -m foobar &&
20     [ $(stg applied -c) -eq 1 ]
21 '
22
23 test_expect_success \
24     'Create a patch without giving a name' '
25     stg new -m yo &&
26     [ $(stg applied -c) -eq 2 ]
27 '
28
29 test_done