6 echo "usage: dcp-runenv REPODIR RUNDIR"
18 if [ ! -d "$rundir" ]; then mkdir "$rundir"; fi
20 git clone -q "$repodir" "$rundir/repo"
21 for b in "$rundir/repo/.git/refs/remotes/origin"/*; do
23 if [ "$b" = HEAD -o "$b" = master ]; then continue; fi
24 (cd "$rundir/repo"; git branch "$b" "origin/$b") || false
26 cp -a "$rundir/repo/control" "$rundir"
27 mkdir "$rundir/output"