diff --git a/lib/kgrader/backend/svn.rb b/lib/kgrader/backend/svn.rb index 3644c3b..9566e8b 100644 --- a/lib/kgrader/backend/svn.rb +++ b/lib/kgrader/backend/svn.rb @@ -52,9 +52,9 @@ module KGrader::Backend end def commit(repo, message, *paths) - fullpaths = *paths.map { |fn| File.join repo, fn } - run 'add', fullpaths - run 'commit', '-m', message, fullpaths + fullpaths = paths.map { |fn| File.join repo, fn } + run 'add', *fullpaths + run 'commit', '-m', message, *fullpaths end def commit_date(repo)