]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
trying again to fix commit_changes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 3 Dec 2008 00:04:57 +0000 (00:04 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 3 Dec 2008 00:04:57 +0000 (00:04 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@627 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 7d556fb9024fcc337103327c3a6796e3a29d5c60..1bafb42c3dbde78c29a1137cac065b77a4231538 100644 (file)
@@ -716,9 +716,9 @@ function commit_changes {
     chown_svn $repos && chgrp_svn $repos
     cd $repos
     if [ ! -z "$1" ]; then
-      if tmpfile=`mktemp -t simplepkg_commit.XXXXXX`; then
-        chown_svn $tmpfile && chgrp_svn $tmpfile
+      if tmpfile=`mktemp $TMP/simplepkg_commit.XXXXXX`; then
         echo $* > $tmpfile
+        chown_svn $tmpfile && chgrp_svn $tmpfile
         su_svn commit -F $tmpfile
         rm -f $tmpfile
       else