Skip to content

Commit 2d3d755

Browse files
authored
build(deps): bump dugite from 2.7.1 to 3.0.0 (#2061)
Bumps [dugite](https://github.com/desktop/dugite) from 2.7.1 to 3.0.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/desktop/dugite/commit/98207887726e79c3512aefa635375f770a8e4e05"><code>9820788</code></a> 3.0.0</li> <li><a href="https://github.com/desktop/dugite/commit/86e17a069152037dcbae06ec9c5ecc238cd3acdf"><code>86e17a0</code></a> Add read-only contents permission to CI workflows</li> <li><a href="https://github.com/desktop/dugite/commit/d99051ce6488081d70181d1fc19fa7fbdea218e2"><code>d99051c</code></a> 3.0.0-rc13</li> <li><a href="https://github.com/desktop/dugite/commit/8a8a3127d2fe94171b1391119f52ce6d37a628c8"><code>8a8a312</code></a> Merge branch 'main' of <a href="https://github.com/desktop/dugite">https://github.com/desktop/dugite</a></li> <li><a href="https://github.com/desktop/dugite/commit/8b140bd53025cf5625a895cff723a188cd6d5d57"><code>8b140bd</code></a> Update publish.yml</li> <li><a href="https://github.com/desktop/dugite/commit/3433df8927822089ec1f8d4aae7fe70e230f1cba"><code>3433df8</code></a> Merge pull request <a href="https://redirect.github.com/desktop/dugite/issues/615">#615</a> from desktop/bump-dugite-native-v2.47.3-1</li> <li><a href="https://github.com/desktop/dugite/commit/6cb14c7394e71b5b3d987d781b9c213d3f378419"><code>6cb14c7</code></a> Update publish.yml</li> <li><a href="https://github.com/desktop/dugite/commit/6a74c4fb03478b90500238e92c45c2b077defd17"><code>6a74c4f</code></a> Update publish.yml</li> <li><a href="https://github.com/desktop/dugite/commit/c6a7ac3b0a02776d0c2d3fbaa543cd461b044705"><code>c6a7ac3</code></a> Update package.json</li> <li><a href="https://github.com/desktop/dugite/commit/47c3753a3131da69983ba6d373960dceb9710801"><code>47c3753</code></a> Update errors-test.ts</li> <li>Additional commits viewable in <a href="https://github.com/desktop/dugite/compare/v2.7.1...v3.0.0">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by [GitHub Actions](<a href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a> Actions), a new releaser for dugite since your current version.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dugite&package-manager=npm_and_yarn&previous-version=2.7.1&new-version=3.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
2 parents 0496da0 + 230470a commit 2d3d755

File tree

3 files changed

+87
-77
lines changed

3 files changed

+87
-77
lines changed

lib/git.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChildProcess } from "child_process";
2-
import { GitProcess, IGitExecutionOptions } from "dugite";
2+
import { exec as GitProcess } from "dugite";
33

44
// For convenience, let's add helpers to call Git:
55

@@ -119,7 +119,7 @@ export function git(args: string[], options?: IGitOptions): Promise<string> {
119119
};
120120
}
121121

122-
GitProcess.exec(args, workDir, options as IGitExecutionOptions)
122+
GitProcess(args, workDir, options)
123123
.then((result) => {
124124
if (result.exitCode) {
125125
reject(new Error(`git ${args.join(" ")} failed: ${result.exitCode},\n${result.stderr}`));
@@ -158,7 +158,7 @@ export function git(args: string[], options?: IGitOptions): Promise<string> {
158158
* @returns { string | undefined } the full SHA-1, or undefined
159159
*/
160160
export async function revParse(argument: string, workDir?: string): Promise<string | undefined> {
161-
const result = await GitProcess.exec(["rev-parse", "--verify", "-q", argument], workDir || ".");
161+
const result = await GitProcess(["rev-parse", "--verify", "-q", argument], workDir || ".");
162162
return result.exitCode ? undefined : trimTrailingNewline(result.stdout);
163163
}
164164

@@ -177,7 +177,7 @@ export async function revListCount(rangeArgs: string | string[], workDir = "."):
177177
} else {
178178
gitArgs.push(...rangeArgs);
179179
}
180-
const result = await GitProcess.exec(gitArgs, workDir);
180+
const result = await GitProcess(gitArgs, workDir);
181181
if (result.exitCode) {
182182
throw new Error(`Could not determine count for ${rangeArgs}: ${result.stderr}`);
183183
}
@@ -196,7 +196,7 @@ export async function commitExists(commit: string, workDir: string): Promise<boo
196196
}
197197

198198
export async function gitConfig(key: string, workDir?: string): Promise<string | undefined> {
199-
const result = await GitProcess.exec(["config", key], workDir || ".");
199+
const result = await GitProcess(["config", key], workDir || ".");
200200
if (result.exitCode !== 0) {
201201
return undefined;
202202
}
@@ -208,12 +208,12 @@ export async function gitConfigForEach(
208208
callbackfn: (value: string) => void,
209209
workDir?: string,
210210
): Promise<void> {
211-
const result = await GitProcess.exec(["config", "--get-all", key], workDir || ".");
211+
const result = await GitProcess(["config", "--get-all", key], workDir || ".");
212212
result.stdout.split(/\r?\n/).map(callbackfn);
213213
}
214214

215215
export async function gitCommandExists(command: string, workDir?: string): Promise<boolean> {
216-
const result = await GitProcess.exec([command, "-h"], workDir || ".");
216+
const result = await GitProcess([command, "-h"], workDir || ".");
217217
return result.exitCode === 129;
218218
}
219219

package-lock.json

Lines changed: 79 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@octokit/request-error": "^7.1.0",
8080
"@octokit/rest": "^22.0.1",
8181
"commander": "^14.0.2",
82-
"dugite": "^2.7.1",
82+
"dugite": "^3.0.0",
8383
"html-to-text": "^9.0.5",
8484
"json-stable-stringify": "^1.3.0",
8585
"jsonwebtoken": "^9.0.3",

0 commit comments

Comments
 (0)