fix(server): stage only changed checkpoint paths #8301
ClosedPetrSeifert(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/8301/headopened View on GitHub- apps/server/src/vcs/GitVcsDriver.ts line 794OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -735,6 +775,20 @@735775 yield* execute({736776 operation,737777 cwd: input.cwd,738- args: ["read-tree", "HEAD"],778+ args: ["add", "-A", "--", "."],739779 env: commitEnv,740780 });781+ } else {782+ const changedPaths = parseCheckpointStatusPaths(statusResult.stdout);783+ if (changedPaths.length > 0) {784+ yield* execute({785+ operation,786+ cwd: repositoryRoot,787+ args: [788+ "--literal-pathspecs",789+ "add",790+ "-A",791+ "--pathspec-from-file=-",792+ "--pathspec-file-nul",793+ ],794+ stdin: `${changedPaths.join("\0")}\0`,
- apps/server/src/vcs/GitVcsDriver.ts line 815Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -737,4 +777,20 @@737777 cwd: input.cwd,738- args: ["read-tree", "HEAD"],778+ args: ["add", "-A", "--", "."],739779 env: commitEnv,740780 });781+ } else {782+ const changedPaths = parseCheckpointStatusPaths(statusResult.stdout);783+ if (changedPaths.length > 0) {784+ yield* execute({785+ operation,786+ cwd: repositoryRoot,787+ args: [788+ "--literal-pathspecs",789+ "add",790+ "-A",791+ "--pathspec-from-file=-",792+ "--pathspec-file-nul",793+ ],794+ stdin: `${changedPaths.join("\0")}\0`,795+ env: commitEnv,796+ });
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
1a5acaa5-e0f5-4859-b150-fde492bd681dYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Comment `@coderabbitai help` to get the list of available commands.