1
0
mirror of https://github.com/desktop/desktop synced 2024-07-05 00:58:57 +00:00

Merge pull request #18676 from desktop/bump-dugite

Bump to dugite 3.0.0-rc0
This commit is contained in:
Markus Olsson 2024-05-23 14:33:03 +02:00 committed by GitHub
commit b80f540b63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@
"desktop-trampoline": "desktop/desktop-trampoline#v0.9.8",
"dexie": "^3.2.2",
"dompurify": "^2.3.3",
"dugite": "^2.7.1",
"dugite": "3.0.0-rc0",
"electron-window-state": "^5.0.3",
"event-kit": "^2.0.0",
"focus-trap-react": "^8.1.0",

View File

@ -1,7 +1,7 @@
import { GitError as DugiteError } from 'dugite'
/** Get the environment for authenticating remote operations. */
export function envForAuthentication(): Object {
export function envForAuthentication(): Record<string, string | undefined> {
return {
// supported since Git 2.3, this is used to ensure we never interactively prompt
// for credentials - even as a fallback

View File

@ -167,7 +167,7 @@ export async function git(
// from a terminal or if the system environment variables
// have TERM set Git won't consider us as a smart terminal.
// See https://github.com/git/git/blob/a7312d1a2/editor.c#L11-L15
opts.env = { TERM: 'dumb', ...combinedEnv } as object
opts.env = { TERM: 'dumb', ...combinedEnv }
const commandName = `${name}: git ${args.join(' ')}`

View File

@ -94,7 +94,7 @@ export async function envForProxy(
remoteUrl: string,
env: NodeJS.ProcessEnv = process.env,
resolve: (url: string) => Promise<string | undefined> = resolveGitProxy
): Promise<NodeJS.ProcessEnv | undefined> {
): Promise<Record<string, string | undefined> | undefined> {
const protocolMatch = /^(https?):\/\//i.exec(remoteUrl)
// We can only resolve and use a proxy for the protocols where cURL

View File

@ -365,10 +365,10 @@ dompurify@^2.3.3:
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-2.3.3.tgz#c1af3eb88be47324432964d8abc75cf4b98d634c"
integrity sha512-dqnqRkPMAjOZE0FogZ+ceJNM2dZ3V/yNOuFB7+39qpO93hHhfRpHw3heYQC7DPK9FqbQTfBKUJhiSfz4MvXYwg==
dugite@^2.7.1:
version "2.7.1"
resolved "https://registry.yarnpkg.com/dugite/-/dugite-2.7.1.tgz#277275fd490bddf20180e124d119f84f708dfb32"
integrity sha512-X7v7JngMG6RGHKCKKF0fdqYC9Xcw0CDes43an6dQW2N2dYNd/OOLq3BFszCOyOObgKnrmNVvyggk3O4WGJMpcA==
dugite@3.0.0-rc0:
version "3.0.0-rc0"
resolved "https://registry.yarnpkg.com/dugite/-/dugite-3.0.0-rc0.tgz#889919aa854469c0b5ead4606cbcf77f4b996cf5"
integrity sha512-+4hOn/gjQzwCryZR0jlL2MjXwuPLSHev202PkcvP7hjk5se0dIApFJwZnANvFYacPgXck3xDWjYGwnq//MP6ng==
dependencies:
progress "^2.0.3"
tar "^6.1.11"