mirror of
https://code.forgejo.org/actions/checkout.git
synced 2024-11-24 12:39:16 +01:00
adding stderr
This commit is contained in:
parent
5788ebd085
commit
9684017cd6
2 changed files with 6 additions and 3 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -7388,6 +7388,7 @@ class GitCommandManager {
|
||||||
branchList(remote) {
|
branchList(remote) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const result = [];
|
const result = [];
|
||||||
|
const stderr = [];
|
||||||
// Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
|
// Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
|
||||||
// "branch --list" is more difficult when in a detached HEAD state.
|
// "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
|
// Note, this implementation uses "rev-parse --symbolic-full-name" because there is a bug
|
||||||
|
@ -7401,7 +7402,7 @@ class GitCommandManager {
|
||||||
}
|
}
|
||||||
const listeners = {
|
const listeners = {
|
||||||
stderr: (data) => {
|
stderr: (data) => {
|
||||||
core.debug(data.toString());
|
stderr.push(data.toString());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const output = yield this.execGit(args, false, false, listeners);
|
const output = yield this.execGit(args, false, false, listeners);
|
||||||
|
@ -7417,6 +7418,7 @@ class GitCommandManager {
|
||||||
result.push(branch);
|
result.push(branch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
core.debug(stderr.join('\n'));
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,6 +91,7 @@ class GitCommandManager {
|
||||||
|
|
||||||
async branchList(remote: boolean): Promise<string[]> {
|
async branchList(remote: boolean): Promise<string[]> {
|
||||||
const result: string[] = []
|
const result: string[] = []
|
||||||
|
const stderr: string[] = []
|
||||||
|
|
||||||
// Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
|
// Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
|
||||||
// "branch --list" is more difficult when in a detached HEAD state.
|
// "branch --list" is more difficult when in a detached HEAD state.
|
||||||
|
@ -106,7 +107,7 @@ class GitCommandManager {
|
||||||
|
|
||||||
const listeners = {
|
const listeners = {
|
||||||
stderr: (data: Buffer) => {
|
stderr: (data: Buffer) => {
|
||||||
core.debug(data.toString())
|
stderr.push(data.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const output = await this.execGit(args, false, false, listeners)
|
const output = await this.execGit(args, false, false, listeners)
|
||||||
|
@ -123,7 +124,7 @@ class GitCommandManager {
|
||||||
result.push(branch)
|
result.push(branch)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
core.debug(stderr.join('\n'))
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue