Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVallie Joseph <vmjoseph@github.com>2022-11-30 20:35:36 +0000
committerVallie Joseph <vmjoseph@github.com>2022-11-30 20:35:36 +0000
commit480cfb6bb2cad4a025e362306983c269cc16ff76 (patch)
tree839559c1d76b046f81ec18fae76994425e42587c
parenta8f7cb6416e87946ead000af5355735c0d733e13 (diff)
adding stderr
-rw-r--r--dist/index.js4
-rw-r--r--src/git-command-manager.ts5
2 files changed, 6 insertions, 3 deletions
diff --git a/dist/index.js b/dist/index.js
index c675ba5..307d9fd 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -7388,6 +7388,7 @@ class GitCommandManager {
branchList(remote) {
return __awaiter(this, void 0, void 0, function* () {
const result = [];
+ const stderr = [];
// Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
// "branch --list" is more difficult when in a detached HEAD state.
// Note, this implementation uses "rev-parse --symbolic-full-name" because there is a bug
@@ -7401,7 +7402,7 @@ class GitCommandManager {
}
const listeners = {
stderr: (data) => {
- core.debug(data.toString());
+ stderr.push(data.toString());
}
};
const output = yield this.execGit(args, false, false, listeners);
@@ -7417,6 +7418,7 @@ class GitCommandManager {
result.push(branch);
}
}
+ core.debug(stderr.join('\n'));
return result;
});
}
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index d150d0f..afcb285 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -91,6 +91,7 @@ class GitCommandManager {
async branchList(remote: boolean): Promise<string[]> {
const result: string[] = []
+ const stderr: string[] = []
// Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
// "branch --list" is more difficult when in a detached HEAD state.
@@ -106,7 +107,7 @@ class GitCommandManager {
const listeners = {
stderr: (data: Buffer) => {
- core.debug(data.toString())
+ stderr.push(data.toString())
}
}
const output = await this.execGit(args, false, false, listeners)
@@ -123,7 +124,7 @@ class GitCommandManager {
result.push(branch)
}
}
-
+ core.debug(stderr.join('\n'))
return result
}