We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b7f84 commit 831d1b8Copy full SHA for 831d1b8
1 file changed
src/test/integration/git.test.ts
@@ -233,6 +233,21 @@ const makeFileChanges = async (
233
});
234
console.log("[DEBUG makeFileChanges] Commit created:", commitResult);
235
236
+ // In detached HEAD state, isomorphic-git doesn't update HEAD after commit.
237
+ // Use writeRef to update HEAD to point to the new commit.
238
+ await git.writeRef({
239
+ fs,
240
+ dir: repoDirectory,
241
+ ref: "HEAD",
242
+ value: commitResult,
243
+ force: true,
244
+ });
245
+
246
+ console.log(
247
+ "[DEBUG makeFileChanges] Updated HEAD via writeRef to:",
248
+ commitResult,
249
+ );
250
251
// Verify HEAD was updated
252
const headAfterCommit = await git.resolveRef({
253
fs,
0 commit comments