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 <[email protected]>
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