Example usage for org.eclipse.jgit.transport UploadPack getRepository

List of usage examples for org.eclipse.jgit.transport UploadPack getRepository

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport UploadPack getRepository.

Prototype

public final Repository getRepository() 

Source Link

Document

Get the repository this upload is reading from.

Usage

From source file:com.googlesource.gerrit.plugins.gerritcounter.GerritCounterHook.java

License:Apache License

private String getRepoName(UploadPack uploadPack) {
    String[] repoPathSplitted = uploadPack.getRepository().toString().split("/");
    String repoName = repoPathSplitted[repoPathSplitted.length - 1].split("\\.")[0].toLowerCase();
    return repoName;
}