blob: 0be5d9b21f6f9b4f2684f16544ee8b969a849a0e [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 applied -c) -eq 1 ]
'
test_expect_success \
'Create a patch without giving a name' '
stg new -m yo &&
[ $(stg applied -c) -eq 2 ]
'
test_done