chiark / gitweb /
provide a global temporary directory
[topgit.git] / tg-mail.sh
index 8167adecb7421d6750205bd9304243f587a2e4d4..dd4a95a74ad9e47ed39dbff05f5f5d53993981e7 100644 (file)
@@ -34,7 +34,7 @@ if [ -n "$in_reply_to" ]; then
 fi
 
 
-patchfile="$(mktemp -t tg-mail.XXXXXX)"
+patchfile="$(get_temp tg-mail)"
 
 $tg patch "$name" >"$patchfile"
 
@@ -54,6 +54,4 @@ people=
 # NOTE: git-send-email handles cc itself
 eval git send-email $send_email_args "$people" "$patchfile"
 
-rm "$patchfile"
-
 # vim:noet