mirror of
https://github.com/actions/checkout.git
synced 2025-03-31 21:40:05 +02:00
don't use silent when echoing commit sha
This commit is contained in:
parent
8940ec9519
commit
d52996e7c2
2 changed files with 4 additions and 2 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
@ -5886,7 +5886,8 @@ class GitCommandManager {
|
||||||
log1(format) {
|
log1(format) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
var args = format ? ['log', '-1', format] : ['log', '-1'];
|
var args = format ? ['log', '-1', format] : ['log', '-1'];
|
||||||
const output = yield this.execGit(args, false, true);
|
var silent = format ? false : true;
|
||||||
|
const output = yield this.execGit(args, false, silent);
|
||||||
return output.stdout;
|
return output.stdout;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -256,7 +256,8 @@ class GitCommandManager {
|
||||||
|
|
||||||
async log1(format?: string): Promise<string> {
|
async log1(format?: string): Promise<string> {
|
||||||
var args = format ? ['log', '-1', format] : ['log', '-1']
|
var args = format ? ['log', '-1', format] : ['log', '-1']
|
||||||
const output = await this.execGit(args, false, true)
|
var silent = format ? false : true
|
||||||
|
const output = await this.execGit(args, false, silent)
|
||||||
return output.stdout
|
return output.stdout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue