5 t-setup-import examplegit
6 t-tstunt-parsechangelog
9 git config core.sharedRepository true
17 t-commit 'No changes, just send to stable' '' stable
20 git reset --hard $badcommit
23 t-dgit push --overwrite=1.2 stable
24 t-archive-process-incoming stable
26 rstable=refs/remotes/dgit/dgit/stable
29 t-has-parent-or-is $rstable $badcommit
31 fixup=${DGIT_BADCOMMIT_FIXUP-dgit-badcommit-fixup}
34 git gc --aggressive --prune=all
40 git symbolic-ref HEAD >../sym.before
41 git rev-parse HEAD >../ref.before
45 git symbolic-ref HEAD >../sym.after
46 git rev-parse HEAD >../ref.after
47 diff ../sym.before ../sym.after
48 set +e; diff ../ref.before ../ref.after; rc=$?; set -e; test $rc = 1
52 t-expect-fail "child $rstable lacks parent $badcommit" \
53 t-has-parent-or-is $rstable $badcommit
56 find "$1" -perm -200 \! -perm -020 -ls |tee $tmp/badperm
57 test -f $tmp/badperm -a ! -s $tmp/badperm
60 check_shared $tmp/git/$p.git/objects