chiark / gitweb /
provide a global temporary directory
[topgit.git] / tg-push.sh
index 199d7389b48ea4563ac2217022f410b2aebf4d4b..a928fba8e9e93a522f966004bea28c0c6fc1fe07 100644 (file)
@@ -45,8 +45,7 @@ for name in $branches; do
        ref_exists "$name" || die "detached HEAD? Can't push $name"
 done
 
-_listfile="$(mktemp -t tg-push-listfile.XXXXXX)"
-trap "rm -f \"$_listfile\"" 0
+_listfile="$(get_temp tg-push-listfile)"
 
 push_branch()
 {