File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,21 +177,17 @@ const makeFileChanges = async (
177177 path . join ( repoDirectory , "README.md" ) ,
178178 path . join ( repoDirectory , "some-dir" , "nested" ) ,
179179 ) ;
180- await new Promise < void > ( ( resolve ) => {
181- execFile (
182- "git" ,
183- [ "config" , "user.email" , "test@test.com" ] ,
184- { cwd : repoDirectory } ,
185- ( ) => resolve ( ) ,
186- ) ;
180+ await git . setConfig ( {
181+ fs,
182+ dir : repoDirectory ,
183+ path : "user.email" ,
184+ value : "test@test.com" ,
187185 } ) ;
188- await new Promise < void > ( ( resolve ) => {
189- execFile (
190- "git" ,
191- [ "config" , "user.name" , "Test" ] ,
192- { cwd : repoDirectory } ,
193- ( ) => resolve ( ) ,
194- ) ;
186+ await git . setConfig ( {
187+ fs,
188+ dir : repoDirectory ,
189+ path : "user.name" ,
190+ value : "Test" ,
195191 } ) ;
196192 await git . add ( {
197193 fs,
@@ -205,7 +201,7 @@ const makeFileChanges = async (
205201 author : { name : "Test" , email : "test@test.com" } ,
206202 } ) ;
207203 // In detached HEAD state, isomorphic-git doesn't update HEAD after commit.
208- // Use writeRef to update HEAD to point to the new commit.
204+ // Use writeRef to update HEAD to point to the new commit (until https://github.com/changesets/ghcommit/pull/46 is merged)
209205 await git . writeRef ( {
210206 fs,
211207 dir : repoDirectory ,
You can’t perform that action at this time.
0 commit comments