Skip to content

Commit 32a3931

Browse files
Explicitly set refspec on git fetch
1 parent 2309b67 commit 32a3931

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/backend/src/git.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ export const cloneRepository = async (
2727
);
2828

2929
await unsetGitConfig(path, ["remote.origin.url"]);
30-
31-
await git.cwd({
32-
path,
33-
}).addConfig("remote.origin.fetch", "+refs/heads/*:refs/heads/*");
3430
} catch (error: unknown) {
3531
const baseLog = `Failed to clone repository: ${path}`;
3632

@@ -59,6 +55,7 @@ export const fetchRepository = async (
5955

6056
await git.fetch([
6157
remoteUrl.toString(),
58+
"+refs/heads/*:refs/heads/*",
6259
"--prune",
6360
"--progress"
6461
]);

0 commit comments

Comments
 (0)