You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2020/06/10 01:47:36 UTC
[whimsy] branch master updated: try looking for a --
This is an automated email from the ASF dual-hosted git repository.
rubys 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 d9219ed try looking for a --
d9219ed is described below
commit d9219ed70651e4db3aad703002c8127cebce4f06
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Jun 9 21:47:18 2020 -0400
try looking for a --
---
www/board/agenda/spec/spec_helper.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/www/board/agenda/spec/spec_helper.rb b/www/board/agenda/spec/spec_helper.rb
index 6f90ad9..e6dae52 100644
--- a/www/board/agenda/spec/spec_helper.rb
+++ b/www/board/agenda/spec/spec_helper.rb
@@ -42,7 +42,13 @@ module MockServer
args.flatten!
if args[1] == 'commit'
@commits ||= {}
- target = args[2..-1].find {|arg| not arg.start_with? '-'}
+
+ if args.include? '--'
+ target = args[args.index('--') + 1]
+ else
+ target = args[2..-1].find {|arg| not arg.start_with? '-'}
+ end
+
@commits[File.basename target] = File.read(target)
`svn revert #{target}`
0