blob: 826e41d85b78ee0c9d75bb4d7f4e5811d28f9ffa [file] [log] [blame]
#!/bin/sh
#
# Copyright (c) 2007 Karl Hasselström
#
test_description='Test the new command.
'
. ./test-lib.sh
test_expect_success \
'Initialize the StGIT repository' '
stg init
'
test_expect_success \
'Create a named patch' '
stg new foo -m foobar &&
[ $(stg series --applied -c) -eq 1 ]
'
test_expect_success \
'Create a patch without giving a name' '
stg new -m yo &&
[ $(stg series --applied -c) -eq 2 ]
'
test_done