-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #435 from desktop/conflict-delete-error-parsing
Conflict (modify/delete) error parsing
- Loading branch information
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,10 @@ export const gitLfsVersion = '2.13.2' | |
|
||
const temp = require('temp').track() | ||
|
||
export async function initialize(repositoryName: string): Promise<string> { | ||
export async function initialize(repositoryName: string, defaultBranch?: string): Promise<string> { | ||
const testRepoPath = temp.mkdirSync(`desktop-git-test-${repositoryName}`) | ||
await GitProcess.exec(['init'], testRepoPath) | ||
const branchArgs = defaultBranch !== undefined ? ['-b', defaultBranch] : [] | ||
await GitProcess.exec(['init', ...branchArgs], testRepoPath) | ||
await GitProcess.exec(['config', 'user.email', '"[email protected]"'], testRepoPath) | ||
await GitProcess.exec(['config', 'user.name', '"Some User"'], testRepoPath) | ||
return testRepoPath | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters