Browse Source

Fix committing.

master
Ben Kurtovic 8 years ago
parent
commit
2c92e45bdb
2 changed files with 5 additions and 2 deletions
  1. +4
    -2
      lib/kgrader/backend/svn.rb
  2. +1
    -0
      lib/kgrader/submission.rb

+ 4
- 2
lib/kgrader/backend/svn.rb View File

@@ -51,8 +51,10 @@ module KGrader::Backend
end end
end end


def commit(repo, message, paths = nil)
run 'commit', '-m', message, *paths.map { |fn| File.join repo, fn }
def commit(repo, message, *paths)
fullpaths = *paths.map { |fn| File.join repo, fn }
run 'add' fullpaths
run 'commit', '-m', message, fullpaths
end end


def commit_date(repo) def commit_date(repo)


+ 1
- 0
lib/kgrader/submission.rb View File

@@ -65,6 +65,7 @@ module KGrader
@course.backend.commit repo, message, @assignment.report @course.backend.commit repo, message, @assignment.report
FileUtils.rm pendingfile FileUtils.rm pendingfile
end end
nil
end end


private private


Loading…
Cancel
Save