chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix error in status.py when calling git.resolved
[stgit]
/
t
/
t1205-push-subdir.sh
diff --git
a/t/t1205-push-subdir.sh
b/t/t1205-push-subdir.sh
index 88b23c4d0f4caa6ef9e085c93d88f44d30ef4d67..175d36d2888987b85505de8810183217e63b3ba2 100755
(executable)
--- a/
t/t1205-push-subdir.sh
+++ b/
t/t1205-push-subdir.sh
@@
-9,7
+9,7
@@
test_expect_success 'Create some patches' '
stg new p$i -m p$i &&
echo x$i >> x.txt &&
echo y$i >> foo/y.txt &&
stg new p$i -m p$i &&
echo x$i >> x.txt &&
echo y$i >> foo/y.txt &&
-
stg
add x.txt foo/y.txt &&
+
git
add x.txt foo/y.txt &&
stg refresh
done &&
[ "$(echo $(stg applied))" = "p0 p1 p2" ] &&
stg refresh
done &&
[ "$(echo $(stg applied))" = "p0 p1 p2" ] &&
@@
-33,7
+33,7
@@
test_expect_success 'Modifying push from a subdir' '
[ "$(echo $(cat foo/y.txt))" = "y0 y1" ] &&
stg new extra -m extra &&
echo extra >> extra.txt &&
[ "$(echo $(cat foo/y.txt))" = "y0 y1" ] &&
stg new extra -m extra &&
echo extra >> extra.txt &&
-
stg
add extra.txt &&
+
git
add extra.txt &&
stg refresh &&
cd foo &&
stg push &&
stg refresh &&
cd foo &&
stg push &&
@@
-42,7
+42,7
@@
test_expect_success 'Modifying push from a subdir' '
[ "$(echo $(cat foo/y.txt))" = "y0 y1 y2" ]
'
[ "$(echo $(cat foo/y.txt))" = "y0 y1 y2" ]
'
-test_expect_
failure
'Conflicting push from subdir' '
+test_expect_
success
'Conflicting push from subdir' '
stg pop p1 p2 &&
[ "$(echo $(cat x.txt))" = "x0" ] &&
[ "$(echo $(cat foo/y.txt))" = "y0" ] &&
stg pop p1 p2 &&
[ "$(echo $(cat x.txt))" = "x0" ] &&
[ "$(echo $(cat foo/y.txt))" = "y0" ] &&
@@
-57,7
+57,7
@@
test_expect_success 'Conflicting add/unknown file in subdir' '
stg new foo -m foo &&
mkdir d &&
echo foo > d/test &&
stg new foo -m foo &&
mkdir d &&
echo foo > d/test &&
-
stg
add d/test &&
+
git
add d/test &&
stg refresh &&
stg pop &&
mkdir -p d &&
stg refresh &&
stg pop &&
mkdir -p d &&