Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --projects in gerrit_downloader #23

Open
iksaif opened this issue May 19, 2017 · 0 comments
Open

Support --projects in gerrit_downloader #23

iksaif opened this issue May 19, 2017 · 0 comments

Comments

@iksaif
Copy link

iksaif commented May 19, 2017

I'd like to use gerrit downloader with prefixes. This means using 'projects:prefix' instead of 'project:{^project}`

Here is a quick hack to make it work, but it would be nicer to add a '--projects' option doing that.

$ git diff
diff --git a/GerritDownloader/src/main/java/com/holmsted/gerrit/downloaders/ssh/SshDownloader.java b/GerritDownloader/src/main/java/com/holmsted/gerrit/downloaders/ssh/SshDownloader.java
index 862d437..ce4fd4d 100644
--- a/GerritDownloader/src/main/java/com/holmsted/gerrit/downloaders/ssh/SshDownloader.java
+++ b/GerritDownloader/src/main/java/com/holmsted/gerrit/downloaders/ssh/SshDownloader.java
@@ -255,9 +255,9 @@ public class SshDownloader extends AbstractGerritStatsDownloader {
                 throw new IllegalStateException("No project name defined!");
             }
             if (afterDate != null) {
-                this.gerritQuery = String.format("project:{^%s} after:{%s}", projectNameList, afterDate);
+                this.gerritQuery = String.format("projects:%s after:{%s}", projectNameList, afterDate);
             } else {
-                this.gerritQuery = String.format("project:{^%s}", projectNameList);
+                this.gerritQuery = String.format("projects:%s", projectNameList);
             }
         }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant