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 \
33 $(cd ../bar && stg id base@master)..HEAD |
39 'Pull those patches applied upstream, without pushing' \
40 "(cd bar && stg pull --nopush
45 'Try to push those patches without merge detection' \
46 "(cd bar && stg push --all
51 'Pull those patches applied upstream' \
52 "(cd bar && stg push --undo && stg push --all --merged
57 'Check that all went well' \
58 "diff -u foo/file bar/file