Skip to content

Commit a6b058d

Browse files
committed
Adds trailing / to ensure proper handling
1 parent 2b05c8d commit a6b058d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/env/node/git/sub-providers/branches.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export class BranchesGitSubProvider implements GitBranchesSubProvider {
140140
{ cwd: repoPath },
141141
'for-each-ref',
142142
...parser.arguments,
143-
'refs/heads',
144-
'refs/remotes',
143+
'refs/heads/',
144+
'refs/remotes/',
145145
);
146146
// If we don't get any data, assume the repo doesn't have any commits yet so check if we have a current branch
147147
if (!data?.length) {

src/env/node/git/sub-providers/tags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class TagsGitSubProvider implements GitTagsSubProvider {
5252
{ cwd: repoPath },
5353
'for-each-ref',
5454
...parser.arguments,
55-
'refs/tags',
55+
'refs/tags/',
5656
);
5757

5858
if (!data?.length) return emptyPagedResult;

0 commit comments

Comments
 (0)