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 2019/11/29 17:22:28 UTC
[whimsy] branch master updated: Trim spurious spaces
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 7b22f1e Trim spurious spaces
7b22f1e is described below
commit 7b22f1e64140a3029482398160e4e642d99a4d0b
Author: Sebb <se...@apache.org>
AuthorDate: Fri Nov 29 17:22:12 2019 +0000
Trim spurious spaces
---
lib/whimsy/asf/svn.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 8add134..104004c 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -270,7 +270,11 @@ module ASF
# issue svn info command
out, err, status = Open3.capture3(*cmd)
if status.success?
- return out.chomp
+ if item.end_with? 'revision' # svn version 1.9.3 appends trailing spaces to *revision items
+ return out.chomp.rstrip
+ else
+ return out.chomp
+ end
else
return nil, err
end