mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-04 14:50:02 +01:00
enable transaction for SSH access
This commit is contained in:
committed by
Hiroaki Yamazoe
parent
7d3bda42e2
commit
a60c607fcb
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user