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 2504b01f Docco [skip ci]
2504b01f is described below
commit 2504b01fb5dc486536c0ae07769eca6944e2e758
Author: Sebb <[email protected]>
AuthorDate: Tue Sep 10 10:47:15 2024 +0100
Docco [skip ci]
---
www/secretary/workbench/models/attachment.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/www/secretary/workbench/models/attachment.rb
b/www/secretary/workbench/models/attachment.rb
index 525bee71..eff24ee2 100644
--- a/www/secretary/workbench/models/attachment.rb
+++ b/www/secretary/workbench/models/attachment.rb
@@ -106,6 +106,8 @@ class Attachment
end
# write a file out to svn
+ # If there is already a directory with the target path, then add the file to
the directory instead
+ # returns the pathname of the file that was written
def write_svn(repos, file, path=nil)
filename = File.join(repos, file)
filename = File.join(filename, path || safe_name) if Dir.exist? filename