commit | 6287d6a8941f68ba8a3a8c27f2a979c02ede489a | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Wed Dec 11 12:04:34 2013 -0800 |
committer | Dave Borowitz <dborowitz@google.com> | Wed Dec 11 12:27:08 2013 -0800 |
tree | 372d17d9c810988a8552a1d95ce354d767c9026d | |
parent | 7eb3360a89282ceaa404bcade5137cc5eb62945f [diff] |
Update to use RefNames constants Gerrit change I76e6ee7e63a4549b51a43698fb50b54a19dabfc6 Change-Id: I1d1383d1c8964add688b7626e4a86df88e7965e4
diff --git a/src/main/java/com/googlesource/gerrit/plugins/download/command/RepoCommand.java b/src/main/java/com/googlesource/gerrit/plugins/download/command/RepoCommand.java index 7f11bed..5a1eafb 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/download/command/RepoCommand.java +++ b/src/main/java/com/googlesource/gerrit/plugins/download/command/RepoCommand.java
@@ -16,6 +16,7 @@ import com.google.gerrit.extensions.config.DownloadCommand; import com.google.gerrit.extensions.config.DownloadScheme; +import com.google.gerrit.reviewdb.client.RefNames; import com.google.gerrit.server.config.DownloadConfig; import com.google.inject.Inject; @@ -39,7 +40,7 @@ } private static String trim(String ref) { - if (ref.startsWith("refs/changes/")) { + if (ref.startsWith(RefNames.REFS_CHANGES)) { int s1 = ref.lastIndexOf('/'); if (s1 > 0) { int s2 = ref.lastIndexOf('/', s1 - 1);