You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/13 15:33:53 UTC

[whimsy] branch master updated: Bug; tmpfile may be nil

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a7ac620  Bug; tmpfile may be nil
a7ac620 is described below

commit a7ac6206dae05bde0dc19096179da7a1af4ef12d
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jun 13 16:33:45 2020 +0100

    Bug; tmpfile may be nil
---
 lib/whimsy/asf/svn.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 469767e..a9eaa8d 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -599,7 +599,7 @@ module ASF
 
         if options[:dryrun]
           # show what would have been committed
-          rc = self.svn_('diff', tmpfile, _)
+          rc = self.svn_('diff', tmpfile || tmpdir, _)
           return # No point checking for pending changes
         else
           # commit the changes