X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=blobdiff_plain;f=tg-export.sh;h=62ea4f97f732b0d0f27e7b98ed742a7c8f5503ba;hp=73ad2efde93508939db4e16b34cb4c9e407a127d;hb=10ee8496b64f56b4a8bd32632ecd3dc4f66c2140;hpb=e92c5885789545f273485399f4bcf5b083ba5f29 diff --git a/tg-export.sh b/tg-export.sh index 73ad2ef..62ea4f9 100644 --- a/tg-export.sh +++ b/tg-export.sh @@ -32,7 +32,7 @@ base_rev="$(git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null)" die "not on a TopGit-controlled branch" -playground="$(mktemp -d)" +playground="$(mktemp -d -t tg-export.XXXXXX)" trap 'rm -rf "$playground"' EXIT @@ -190,7 +190,7 @@ recurse_deps driver "$name" if [ "$driver" = "collapse" ]; then - git update-ref "refs/heads/$output" "$(cat "$playground/$name")" + git update-ref "refs/heads/$output" "$(cat "$playground/$name")" "" depcount="$(cat "$playground/^ticker" | wc -l)" echo "Exported topic branch $name (total $depcount topics) to branch $output"