fix fs helper git test
This commit is contained in:
@@ -223,8 +223,14 @@ describe('ensureCorrectShaCheckedOut', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
dir = fsHelper.createTempDir(tmpFileDir, 'subdir')
|
dir = fsHelper.createTempDir(tmpFileDir, 'subdir')
|
||||||
|
|
||||||
// Set up a git repository with two commits
|
// Set up a git repository
|
||||||
execSync('git init', { cwd: dir })
|
execSync('git init', { cwd: dir })
|
||||||
|
|
||||||
|
// Set user and email in this git repo (not globally)
|
||||||
|
execSync('git config user.email [email protected]', { cwd: dir })
|
||||||
|
execSync('git config user.name Mona', { cwd: dir })
|
||||||
|
|
||||||
|
// Add two commits
|
||||||
execSync('git commit --allow-empty -m "test"', { cwd: dir })
|
execSync('git commit --allow-empty -m "test"', { cwd: dir })
|
||||||
execSync('git commit --allow-empty -m "test"', { cwd: dir })
|
execSync('git commit --allow-empty -m "test"', { cwd: dir })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user