Skip to content

Commit e5df86c

Browse files
committed
remove isomorphic-git's workaround
1 parent 8d7f0d3 commit e5df86c

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"access": "public"
9191
},
9292
"dependencies": {
93-
"isomorphic-git": "^1.36.2"
93+
"isomorphic-git": "^1.36.3"
9494
},
9595
"prettier": {}
9696
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/integration/git.test.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,21 +195,12 @@ async function makeFileChanges(
195195
dir: repoDirectory,
196196
filepath: "some-dir/nested",
197197
});
198-
const newCommit = await git.commit({
198+
await git.commit({
199199
fs,
200200
dir: repoDirectory,
201201
message: "Add symlink",
202202
author: { name: "Test", email: "test@test.com" },
203203
});
204-
// In detached HEAD state, isomorphic-git doesn't update HEAD after commit.
205-
// Use writeRef to update HEAD to point to the new commit (until https://github.com/changesets/ghcommit/pull/46 is merged)
206-
await git.writeRef({
207-
fs,
208-
dir: repoDirectory,
209-
ref: "HEAD",
210-
value: newCommit,
211-
force: true,
212-
});
213204

214205
// Push the commit with symlink to GitHub so the API can use it as base.
215206
// Using native git since isomorphic-git push requires explicit auth setup.

0 commit comments

Comments
 (0)