mirror of
https://github.com/desktop/desktop
synced 2024-10-02 14:23:59 +00:00
Get rid of IGitAccount
Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
This commit is contained in:
parent
08ed51edd8
commit
3e70fdbc61
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue