Ver código fonte

Fix committing.

master
Ben Kurtovic 8 anos atrás
pai
commit
2c92e45bdb
2 arquivos alterados com 5 adições e 2 exclusões
  1. +4
    -2
      lib/kgrader/backend/svn.rb
  2. +1
    -0
      lib/kgrader/submission.rb

+ 4
- 2
lib/kgrader/backend/svn.rb Ver arquivo

@@ -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 Ver arquivo

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

private


Carregando…
Cancelar
Salvar