Skip to content
Snippets Groups Projects
Unverified Commit 51f8381e authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(git): add — after rev-parse (#8513)

parent 3d86ac63
No related branches found
No related tags found
No related merge requests found
...@@ -393,7 +393,7 @@ export async function checkoutBranch(branchName: string): Promise<CommitSha> { ...@@ -393,7 +393,7 @@ export async function checkoutBranch(branchName: string): Promise<CommitSha> {
try { try {
config.currentBranch = branchName; config.currentBranch = branchName;
config.currentBranchSha = ( config.currentBranchSha = (
await git.raw(['rev-parse', 'origin/' + branchName]) await git.raw(['rev-parse', 'origin/' + branchName, '--'])
).trim(); ).trim();
await git.checkout([branchName, '-f']); await git.checkout([branchName, '-f']);
const latestCommitDate = (await git.log({ n: 1 }))?.latest?.date; const latestCommitDate = (await git.log({ n: 1 }))?.latest?.date;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment