3 # Copyright (c) 2006 Yann Dirson
12 # don't need this repo, but better not drop it, see t1100
15 # Need a repo to clone
19 'Setup and clone tree, and setup changes' \
21 printf 'a\nb\n' > file && git add file && git commit -m .
24 (cd bar && stg new p1 -m p1
25 printf 'c\n' >> file && stg refresh
30 'Port those patches to orig tree' \
32 GIT_DIR=../bar/.git git-format-patch --stdout bases/master..HEAD |
38 'Pull those patches applied upstream, without pushing' \
39 "(cd bar && stg pull --nopush
44 'Try to push those patches without merge detection' \
45 "(cd bar && stg push --all
50 'Pull those patches applied upstream' \
51 "(cd bar && stg push --undo && stg push --all --merged
56 'Check that all went well' \
57 "diff -u foo/file bar/file