Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/commitpkg.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/commitpkg.in')
-rw-r--r--src/commitpkg.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in
index 235d12b..2f0ea1f 100644
--- a/src/commitpkg.in
+++ b/src/commitpkg.in
@@ -132,7 +132,8 @@ if [[ -n $(svn status -q) ]]; then
svn commit -q -m "${msgtemplate}: ${1}" || die
stat_done
else
- msgfile="$(mktemp)"
+ [[ -z ${WORKDIR:-} ]] && setup_workdir
+ msgfile=$(mktemp --tmpdir="${WORKDIR}" commitpkg.XXXXXXXXXX)
echo "$msgtemplate" > "$msgfile"
if [[ -n $SVN_EDITOR ]]; then
$SVN_EDITOR "$msgfile"