fix: rename local sourceControlProvider to hostingProvider to avoid shadowing outer function
Applied via @cursor push command
This commit is contained in:
1 parent
083fa715bf
commit
4b1daeea5b
1 file changed
+2
-2
@@ -699,13 +699,13 @@ export const makeGitManager = Effect.fn("makeGitManager")(function* () {
|
||||
.pipe(
|
||||
Effect.catchIf(isNotGitRepositoryError, () => Effect.succeed(nonRepositoryStatusDetails)),
|
||||
);
|
||||
const sourceControlProvider = details.isRepo
|
||||
const hostingProvider = details.isRepo
|
||||
? yield* resolveHostingProvider(cwd, details.branch)
|
||||
: null;
|
||||
|
||||
return {
|
||||
isRepo: details.isRepo,
|
||||
...(sourceControlProvider ? { sourceControlProvider } : {}),
|
||||
...(hostingProvider ? { sourceControlProvider: hostingProvider } : {}),
|
||||
hasPrimaryRemote: details.hasOriginRemote,
|
||||
isDefaultRef: details.isDefaultBranch,
|
||||
refName: details.branch,
|
||||
|
||||
Reference in new issue
Block a user