@openvcs/git-plugin 0.3.2-nightly.20260613.146 → 0.3.3-beta.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/plugin-helpers.js
CHANGED
|
@@ -36,11 +36,7 @@ function pushOptionalArg(args, value) {
|
|
|
36
36
|
}
|
|
37
37
|
/** Builds `git fetch` arguments while omitting empty optional values. */
|
|
38
38
|
export function buildFetchArgs(params) {
|
|
39
|
-
const args = ['fetch'];
|
|
40
|
-
const options = asRecord(params.opts);
|
|
41
|
-
if (options.prune === true) {
|
|
42
|
-
args.push('--prune');
|
|
43
|
-
}
|
|
39
|
+
const args = ['fetch', '--prune'];
|
|
44
40
|
pushOptionalArg(args, params.remote);
|
|
45
41
|
pushOptionalArg(args, params.refspec);
|
|
46
42
|
return args;
|
|
@@ -213,11 +213,9 @@ export class GitVcsDelegates extends VcsDelegateBase {
|
|
|
213
213
|
}
|
|
214
214
|
fetch(params, _context) {
|
|
215
215
|
const git = this.requireGit(params.session_id);
|
|
216
|
-
const options = asRecord(params.opts);
|
|
217
216
|
git.fetch({
|
|
218
217
|
remote: asTrimmedString(params.remote) || undefined,
|
|
219
218
|
refspec: asTrimmedString(params.refspec) || undefined,
|
|
220
|
-
opts: { prune: options.prune === true },
|
|
221
219
|
});
|
|
222
220
|
return null;
|
|
223
221
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openvcs/git-plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3-beta.149",
|
|
4
4
|
"description": "Git VCS backend plugin for OpenVCS",
|
|
5
5
|
"author": "OpenVCS Contributors",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"version": "0.3.
|
|
38
|
+
"version": "0.3.3-beta.149"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"lint": "tsc -p tsconfig.json --noEmit",
|
package/src/git.ts
CHANGED
package/src/plugin-helpers.ts
CHANGED
|
@@ -53,12 +53,7 @@ function pushOptionalArg(args: string[], value: unknown): void {
|
|
|
53
53
|
|
|
54
54
|
/** Builds `git fetch` arguments while omitting empty optional values. */
|
|
55
55
|
export function buildFetchArgs(params: RequestParams): string[] {
|
|
56
|
-
const args = ['fetch'];
|
|
57
|
-
const options = asRecord(params.opts);
|
|
58
|
-
|
|
59
|
-
if (options.prune === true) {
|
|
60
|
-
args.push('--prune');
|
|
61
|
-
}
|
|
56
|
+
const args = ['fetch', '--prune'];
|
|
62
57
|
|
|
63
58
|
pushOptionalArg(args, params.remote);
|
|
64
59
|
pushOptionalArg(args, params.refspec);
|
|
@@ -337,11 +337,9 @@ export class GitVcsDelegates extends VcsDelegateBase<GitRuntimeDependencies> {
|
|
|
337
337
|
_context: PluginRuntimeContext,
|
|
338
338
|
): null {
|
|
339
339
|
const git = this.requireGit(params.session_id);
|
|
340
|
-
const options = asRecord(params.opts);
|
|
341
340
|
git.fetch({
|
|
342
341
|
remote: asTrimmedString(params.remote) || undefined,
|
|
343
342
|
refspec: asTrimmedString(params.refspec) || undefined,
|
|
344
|
-
opts: { prune: options.prune === true },
|
|
345
343
|
});
|
|
346
344
|
return null;
|
|
347
345
|
}
|