From: <> --- TODO | 1 + t/t1000-branch.sh | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/TODO b/TODO index a9a8b1f..365ecd4 100644 --- a/TODO +++ b/TODO @@ -26,3 +26,4 @@ Bugs: - the following commands break in subdirs: - refresh (ml: "Running StGIT in subdirectories") +- branch renaming leaves junk behind diff --git a/t/t1000-branch.sh b/t/t1000-branch.sh new file mode 100755 index 0000000..4c790f5 --- /dev/null +++ b/t/t1000-branch.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Copyright (c) 2006 Yann Dirson +# + +test_description='dummy test. + +Only to test the testing environment. +' + +. ./test-lib.sh + +test_stg_init + +test_expect_success \ + 'Create an stgit branch from scratch' \ + 'stg branch -c foo && + stg new p1 -m "p1" +' + +test_expect_failure \ + 'Rename the current stgit branch' \ + 'stg branch -r foo bar +' + +test_expect_success \ + 'Rename an stgit branch' \ + 'stg branch -c buz && + stg branch -r foo bar && + test -z `find .git -name foo` +' + +test_done - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html