mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 06:27:07 +02:00
remove println(for debug)
This commit is contained in:
@@ -229,7 +229,6 @@ trait RepositoryViewerControllerBase extends ControllerBase {
|
||||
get("/:owner/:repository/edit/*")(collaboratorsOnly { repository =>
|
||||
val (branch, path) = splitPath(repository, multiParams("splat").head)
|
||||
val protectedBranch = isProtectedBranchNeedStatusCheck(repository.owner, repository.name, branch, context.loginAccount.get.userName)
|
||||
println(s"protectedBranch=${protectedBranch}")
|
||||
|
||||
using(Git.open(getRepositoryDir(repository.owner, repository.name))){ git =>
|
||||
val revCommit = JGitUtil.getRevCommitFromId(git, git.getRepository.resolve(branch))
|
||||
|
||||
@@ -139,7 +139,6 @@ class CommitLogHook(owner: String, repository: String, pusher: String, baseUrl:
|
||||
using(Git.open(Directory.getRepositoryDir(owner, repository))) { git =>
|
||||
val pushedIds = scala.collection.mutable.Set[String]()
|
||||
commands.asScala.foreach { command =>
|
||||
println(s"onPostReceive commandType: ${command.getType}, refName: ${command.getRefName}")
|
||||
logger.debug(s"commandType: ${command.getType}, refName: ${command.getRefName}")
|
||||
implicit val apiContext = api.JsonFormat.Context(baseUrl)
|
||||
val refName = command.getRefName.split("/")
|
||||
|
||||
Reference in New Issue
Block a user