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