~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stgit.el: Add 'm' as alias for stgit-mark
[stgit]
/
t
/
t1001-branch-rename.sh
diff --git
a/t/t1001-branch-rename.sh
b/t/t1001-branch-rename.sh
index
28da15c
..
d5d3aef
100755
(executable)
--- a/
t/t1001-branch-rename.sh
+++ b/
t/t1001-branch-rename.sh
@@
-17,16
+17,17
@@
test_expect_success \
stg new p1 -m "p1"
'
stg new p1 -m "p1"
'
-test_expect_
failure
\
+test_expect_
success
\
'Rename the current stgit branch' \
'Rename the current stgit branch' \
- 'stg branch -r foo bar
+ '
command_error
stg branch -r foo bar
'
test_expect_success \
'Rename an stgit branch' \
'stg branch -c buz &&
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 | tee /dev/stderr`
+ [ -z $(find .git -type f | grep foo | tee /dev/stderr) ] &&
+ test -z $(git config -l | grep branch\\.foo)
'
test_done
'
test_done