Skip to content

Commit 5ee89ee

Browse files
authored
Merge pull request #73 from coderoad/validate-remote-exists
eat error if remote exists
2 parents e39dc91 + 4cbcc63 commit 5ee89ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/validate.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ async function validate (args: string[]) {
5858
const tempGit: SimpleGit = gitP(tmpDir)
5959

6060
await tempGit.init()
61-
await tempGit.addRemote('origin', skeleton.config.repo.uri)
61+
await tempGit
62+
.addRemote('origin', skeleton.config.repo.uri)
63+
.catch(console.warn)
6264
await tempGit.fetch('origin', skeleton.config.repo.branch)
6365
// no js cherry pick implementation
6466
const cherryPick = createCherryPick(tmpDir)

0 commit comments

Comments
 (0)