enable transaction for SSH access

This commit is contained in:
Hiroaki Yamazoe
2016-10-30 13:59:54 +09:00
committed by Hiroaki Yamazoe
parent 7d3bda42e2
commit a60c607fcb

View File

@@ -36,7 +36,7 @@ abstract class GitCommand extends Command with SessionAware {
override def run(): Unit = {
authUser match {
case Some(authUser) =>
Database() withSession { implicit session =>
Database() withTransaction { implicit session =>
try {
runTask(authUser)
callback.onExit(0)