Skip to content

Commit 60b7f84

Browse files
committed
fmt
1 parent bcf398e commit 60b7f84

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

src/test/integration/git.test.ts

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,15 @@ const makeFileChanges = async (
215215
dir: repoDirectory,
216216
filepath: "some-dir/nested",
217217
});
218-
const headBeforeCommit = await git.resolveRef({ fs, dir: repoDirectory, ref: "HEAD" });
219-
console.log("[DEBUG makeFileChanges] HEAD before commit:", headBeforeCommit);
218+
const headBeforeCommit = await git.resolveRef({
219+
fs,
220+
dir: repoDirectory,
221+
ref: "HEAD",
222+
});
223+
console.log(
224+
"[DEBUG makeFileChanges] HEAD before commit:",
225+
headBeforeCommit,
226+
);
220227
console.log("[DEBUG makeFileChanges] git.commit 'Add symlink'");
221228
const commitResult = await git.commit({
222229
fs,
@@ -225,11 +232,18 @@ const makeFileChanges = async (
225232
author: { name: "Test", email: "test@test.com" },
226233
});
227234
console.log("[DEBUG makeFileChanges] Commit created:", commitResult);
228-
235+
229236
// Verify HEAD was updated
230-
const headAfterCommit = await git.resolveRef({ fs, dir: repoDirectory, ref: "HEAD" });
237+
const headAfterCommit = await git.resolveRef({
238+
fs,
239+
dir: repoDirectory,
240+
ref: "HEAD",
241+
});
231242
console.log("[DEBUG makeFileChanges] HEAD after commit:", headAfterCommit);
232-
console.log("[DEBUG makeFileChanges] HEAD matches commit?", headAfterCommit === commitResult);
243+
console.log(
244+
"[DEBUG makeFileChanges] HEAD matches commit?",
245+
headAfterCommit === commitResult,
246+
);
233247

234248
// Verify the symlink is in the commit
235249
const commitObj = await git.readCommit({

0 commit comments

Comments
 (0)