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

Remove unneeded commit information from build logs #345

Merged
merged 4 commits into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5885,7 +5885,7 @@ class GitCommandManager {
}
log1() {
return __awaiter(this, void 0, void 0, function* () {
const output = yield this.execGit(['log', '-1']);
const output = yield this.execGit(['log', '-1'], false, true);
return output.stdout;
});
}
Expand Down Expand Up @@ -6007,7 +6007,7 @@ class GitCommandManager {
return result;
});
}
execGit(args, allowAllExitCodes = false) {
execGit(args, allowAllExitCodes = false, silent = false) {
return __awaiter(this, void 0, void 0, function* () {
fshelper.directoryExistsSync(this.workingDirectory, true);
const result = new GitOutput();
Expand All @@ -6022,6 +6022,7 @@ class GitCommandManager {
const options = {
cwd: this.workingDirectory,
env,
silent,
ignoreReturnCode: allowAllExitCodes,
listeners: {
stdout: (data) => {
Expand Down
6 changes: 4 additions & 2 deletions src/git-command-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class GitCommandManager {
}

async log1(): Promise<string> {
const output = await this.execGit(['log', '-1'])
const output = await this.execGit(['log', '-1'], false, true)
return output.stdout
}

Expand Down Expand Up @@ -390,7 +390,8 @@ class GitCommandManager {

private async execGit(
args: string[],
allowAllExitCodes = false
allowAllExitCodes = false,
silent = false
): Promise<GitOutput> {
fshelper.directoryExistsSync(this.workingDirectory, true)

Expand All @@ -409,6 +410,7 @@ class GitCommandManager {
const options = {
cwd: this.workingDirectory,
env,
silent,
ignoreReturnCode: allowAllExitCodes,
listeners: {
stdout: (data: Buffer) => {
Expand Down