Remove GIT_NAMESPACE

This commit is contained in:
Sebastian Wilzbach 2017-02-26 11:33:51 +01:00
parent 97253e9767
commit 2e0f669268

View file

@ -94,8 +94,6 @@ auto getIssues(string revRange)
import std.process : execute, pipeProcess, Redirect, wait; import std.process : execute, pipeProcess, Redirect, wait;
import std.regex : ctRegex, match, splitter; import std.regex : ctRegex, match, splitter;
enum gitNamespace = ["GIT_NAMESPACE": "changed"];
// see https://github.com/github/github-services/blob/2e886f407696261bd5adfc99b16d36d5e7b50241/lib/services/bugzilla.rb#L155 // see https://github.com/github/github-services/blob/2e886f407696261bd5adfc99b16d36d5e7b50241/lib/services/bugzilla.rb#L155
enum closedRE = ctRegex!(`((close|fix|address)e?(s|d)? )?(ticket|bug|tracker item|issue)s?:? *([\d ,\+&#and]+)`, "i"); enum closedRE = ctRegex!(`((close|fix|address)e?(s|d)? )?(ticket|bug|tracker item|issue)s?:? *([\d ,\+&#and]+)`, "i");
@ -105,11 +103,11 @@ auto getIssues(string revRange)
{ {
auto cmd = ["git", "-C", repo, "fetch", "--tags", "https://github.com/dlang/" ~ repo.baseName, auto cmd = ["git", "-C", repo, "fetch", "--tags", "https://github.com/dlang/" ~ repo.baseName,
"+refs/heads/*:refs/remotes/upstream/*"]; "+refs/heads/*:refs/remotes/upstream/*"];
auto p = pipeProcess(cmd, Redirect.stdout, gitNamespace); auto p = pipeProcess(cmd, Redirect.stdout);
enforce(wait(p.pid) == 0, "Failed to execute '%(%s %)'.".format(cmd)); enforce(wait(p.pid) == 0, "Failed to execute '%(%s %)'.".format(cmd));
cmd = ["git", "-C", repo, "log", revRange]; cmd = ["git", "-C", repo, "log", revRange];
p = pipeProcess(cmd, Redirect.stdout, gitNamespace); p = pipeProcess(cmd, Redirect.stdout);
scope(exit) enforce(wait(p.pid) == 0, "Failed to execute '%(%s %)'.".format(cmd)); scope(exit) enforce(wait(p.pid) == 0, "Failed to execute '%(%s %)'.".format(cmd));
foreach (line; p.stdout.byLine()) foreach (line; p.stdout.byLine())