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.
@@ -1722,6 +1722,13 @@ var WorktreeStatusService = class {
1722
1722
  };
1723
1723
 
1724
1724
  // src/services/git.service.ts
1725
+ function sanitizeGitEnv(env) {
1726
+ const sanitized = { ...env };
1727
+ delete sanitized.EDITOR;
1728
+ delete sanitized.GIT_EDITOR;
1729
+ delete sanitized.GIT_SEQUENCE_EDITOR;
1730
+ return sanitized;
1731
+ }
1725
1732
  var GitService = class {
1726
1733
  constructor(config, logger) {
1727
1734
  this.config = config;
@@ -1898,7 +1905,7 @@ var GitService = class {
1898
1905
  return branches;
1899
1906
  }
1900
1907
  async verifyLfsFilesDownloaded(worktreePath, branchName) {
1901
- const worktreeGit = this.config.sparseCheckout ? simpleGit4(worktreePath).env({ ...process.env, [ENV_CONSTANTS.GIT_ATTR_SOURCE]: "HEAD" }) : this.getCachedGit(worktreePath);
1908
+ const worktreeGit = this.config.sparseCheckout ? simpleGit4(worktreePath).env({ ...sanitizeGitEnv(process.env), [ENV_CONSTANTS.GIT_ATTR_SOURCE]: "HEAD" }) : this.getCachedGit(worktreePath);
1902
1909
  try {
1903
1910
  const lfsFiles = await worktreeGit.raw(["lfs", "ls-files", "--name-only"]);
1904
1911
  let lfsFileList = lfsFiles.trim().split("\n").filter((f) => f.length > 0);