Pārlūkot izejas kodu

Fix committing.

master
Ben Kurtovic pirms 8 gadiem
vecāks
revīzija
2c92e45bdb
2 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. +4
    -2
      lib/kgrader/backend/svn.rb
  2. +1
    -0
      lib/kgrader/submission.rb

+ 4
- 2
lib/kgrader/backend/svn.rb Parādīt failu

@@ -51,8 +51,10 @@ module KGrader::Backend
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

def commit_date(repo)


+ 1
- 0
lib/kgrader/submission.rb Parādīt failu

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

private


Notiek ielāde…
Atcelt
Saglabāt