Skip to content

Commit 7f90710

Browse files
committed
fix: Minimal changes to resolve rebase conflicts in repoManager.ts
- Add missing remoteUrl parameter to fetchRepository call (as URL object) - Pass cloneUrl as URL object instead of string to cloneRepository - Keep existing callback destructuring pattern without type annotations - No unnecessary imports or type changes
1 parent ac8bc27 commit 7f90710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/backend/src/repoManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class RepoManager implements IRepoManager {
251251
if (existsSync(repoPath) && !isReadOnly) {
252252
logger.info(`Fetching ${repo.displayName}...`);
253253

254-
const { durationMs } = await measure(() => fetchRepository(repoPath, ({ method, stage, progress }) => {
254+
const { durationMs } = await measure(() => fetchRepository(new URL(repo.cloneUrl), repoPath, ({ method, stage, progress }) => {
255255
logger.debug(`git.${method} ${stage} stage ${progress}% complete for ${repo.displayName}`)
256256
}));
257257
const fetchDuration_s = durationMs / 1000;
@@ -278,7 +278,7 @@ export class RepoManager implements IRepoManager {
278278
}
279279
}
280280

281-
const { durationMs } = await measure(() => cloneRepository(cloneUrl.toString(), repoPath, ({ method, stage, progress }) => {
281+
const { durationMs } = await measure(() => cloneRepository(cloneUrl, repoPath, ({ method, stage, progress }) => {
282282
logger.debug(`git.${method} ${stage} stage ${progress}% complete for ${repo.displayName}`)
283283
}));
284284
const cloneDuration_s = durationMs / 1000;

0 commit comments

Comments
 (0)