Skip to content

Commit

Permalink
fix: Revert "fix(git): add — after rev-parse (#8513)"
Browse files Browse the repository at this point in the history
This reverts commit 51f8381.
  • Loading branch information
rarkins committed Feb 3, 2021
1 parent ef7e3c1 commit 89811e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export async function checkoutBranch(branchName: string): Promise<CommitSha> {
try {
config.currentBranch = branchName;
config.currentBranchSha = (
await git.raw(['rev-parse', 'origin/' + branchName, '--'])
await git.raw(['rev-parse', 'origin/' + branchName])
).trim();
await git.checkout([branchName, '-f']);
const latestCommitDate = (await git.log({ n: 1 }))?.latest?.date;
Expand Down

0 comments on commit 89811e6

Please sign in to comment.