Get rid of IGitAccount

Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
This commit is contained in:
Markus Olsson 2024-05-20 14:03:48 +02:00
parent 08ed51edd8
commit 3e70fdbc61
2 changed files with 5 additions and 4 deletions

View file

@ -70,7 +70,6 @@ import {
IMultiCommitOperationProgress,
} from '../../models/progress'
import { Popup, PopupType } from '../../models/popup'
import { IGitAccount } from '../../models/git-account'
import { themeChangeMonitor } from '../../ui/lib/theme-change-monitor'
import { getAppPath } from '../../ui/lib/app-proxy'
import {
@ -6043,7 +6042,7 @@ export class AppStore extends TypedBaseStore<IAppState> {
fn: (repository: Repository) => Promise<T>
): Promise<T> {
let updatedRepository = repository
const account: IGitAccount | null = getAccountForRepository(
const account: Account | null = getAccountForRepository(
this.accounts,
updatedRepository
)

View file

@ -11,11 +11,13 @@ import {
import { GitError as DugiteError, GitProcess } from 'dugite'
import memoizeOne from 'memoize-one'
import { enableCustomGitUserAgent } from '../feature-flag'
import { IGitAccount } from '../../models/git-account'
import { GitError } from '../git/core'
import { deleteGenericCredential } from '../generic-git-auth'
const mostRecentGenericGitCredential = new Map<string, IGitAccount>()
const mostRecentGenericGitCredential = new Map<
string,
{ endpoint: string; login: string }
>()
export const setMostRecentGenericGitCredential = (
trampolineToken: string,