From 4cbcc639988f2fd6c3ace474f71ea463b26a7d78 Mon Sep 17 00:00:00 2001 From: shmck Date: Mon, 10 Aug 2020 19:32:57 -0700 Subject: [PATCH] eat error if remote exists Signed-off-by: shmck --- src/validate.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validate.ts b/src/validate.ts index 992bc2c..cd0f4aa 100644 --- a/src/validate.ts +++ b/src/validate.ts @@ -58,7 +58,9 @@ async function validate (args: string[]) { const tempGit: SimpleGit = gitP(tmpDir) await tempGit.init() - await tempGit.addRemote('origin', skeleton.config.repo.uri) + await tempGit + .addRemote('origin', skeleton.config.repo.uri) + .catch(console.warn) await tempGit.fetch('origin', skeleton.config.repo.branch) // no js cherry pick implementation const cherryPick = createCherryPick(tmpDir)