remove println(for debug)

This commit is contained in:
nazoking
2015-12-27 19:56:34 +09:00
parent 2d8aa4f8b5
commit 927969ac17
2 changed files with 0 additions and 2 deletions

View File

@@ -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))

View File

@@ -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("/")