Skip to content

Commit

Permalink
fix: git log
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanurazvan committed Apr 19, 2023
1 parent 3b506ee commit 816805c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/app/services/git/handlers/getRepoInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function getRepoInfo({path}: GitPathParams): Promise<GitRepo> {
const branchName = branchMapValues[i].name;

// get the list of commits for each branch found
const commits = [...(await git.log({[branchName]: null})).all];
const commits = [...(await git.log({[branchName === gitRepo.currentBranch ? '.' : branchName]: null})).all];

branchMapValues[i].commits = orderBy(commits, ['date'], ['desc']);
}
Expand Down

0 comments on commit 816805c

Please sign in to comment.