We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2309b67 commit 32a3931Copy full SHA for 32a3931
packages/backend/src/git.ts
@@ -27,10 +27,6 @@ export const cloneRepository = async (
27
);
28
29
await unsetGitConfig(path, ["remote.origin.url"]);
30
-
31
- await git.cwd({
32
- path,
33
- }).addConfig("remote.origin.fetch", "+refs/heads/*:refs/heads/*");
34
} catch (error: unknown) {
35
const baseLog = `Failed to clone repository: ${path}`;
36
@@ -59,6 +55,7 @@ export const fetchRepository = async (
59
55
60
56
await git.fetch([
61
57
remoteUrl.toString(),
58
+ "+refs/heads/*:refs/heads/*",
62
"--prune",
63
"--progress"
64
]);
0 commit comments