sync-worktrees 3.3.0 → 3.3.1
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/dist/index.js +8 -1
- package/dist/index.js.map +2 -2
- package/dist/mcp-server.js +8 -1
- package/dist/mcp-server.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2993,6 +2993,13 @@ var WorktreeStatusService = class {
|
|
|
2993
2993
|
};
|
|
2994
2994
|
|
|
2995
2995
|
// src/services/git.service.ts
|
|
2996
|
+
function sanitizeGitEnv(env) {
|
|
2997
|
+
const sanitized = { ...env };
|
|
2998
|
+
delete sanitized.EDITOR;
|
|
2999
|
+
delete sanitized.GIT_EDITOR;
|
|
3000
|
+
delete sanitized.GIT_SEQUENCE_EDITOR;
|
|
3001
|
+
return sanitized;
|
|
3002
|
+
}
|
|
2996
3003
|
var GitService = class {
|
|
2997
3004
|
constructor(config, logger) {
|
|
2998
3005
|
this.config = config;
|
|
@@ -3169,7 +3176,7 @@ var GitService = class {
|
|
|
3169
3176
|
return branches;
|
|
3170
3177
|
}
|
|
3171
3178
|
async verifyLfsFilesDownloaded(worktreePath, branchName) {
|
|
3172
|
-
const worktreeGit = this.config.sparseCheckout ? simpleGit4(worktreePath).env({ ...process.env, [ENV_CONSTANTS.GIT_ATTR_SOURCE]: "HEAD" }) : this.getCachedGit(worktreePath);
|
|
3179
|
+
const worktreeGit = this.config.sparseCheckout ? simpleGit4(worktreePath).env({ ...sanitizeGitEnv(process.env), [ENV_CONSTANTS.GIT_ATTR_SOURCE]: "HEAD" }) : this.getCachedGit(worktreePath);
|
|
3173
3180
|
try {
|
|
3174
3181
|
const lfsFiles = await worktreeGit.raw(["lfs", "ls-files", "--name-only"]);
|
|
3175
3182
|
let lfsFileList = lfsFiles.trim().split("\n").filter((f) => f.length > 0);
|