Skip to content

Commit a44dba4

Browse files
committed
refactor: remove unnecessary refs/heads prefix mapping in branch filtering
1 parent 9d8dcb3 commit a44dba4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/backend/src/repoIndexManager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@ export class RepoIndexManager {
404404
const allBranches = await getBranches(repoPath);
405405
const matchingBranches =
406406
allBranches
407-
.filter((branch) => micromatch.isMatch(branch, branchGlobs))
408-
.map((branch) => `refs/heads/${branch}`);
407+
.filter((branch) => micromatch.isMatch(branch, branchGlobs));
409408

410409
revisions = [
411410
...revisions,

0 commit comments

Comments
 (0)