Skip to content

Commit 3fff52a

Browse files
committed
eat error if remote exists
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent df85d46 commit 3fff52a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/validate.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ async function validate(args: string[]) {
5959
const tempGit: SimpleGit = gitP(tmpDir);
6060

6161
await tempGit.init();
62-
await tempGit.addRemote("origin", skeleton.config.repo.uri);
62+
await tempGit
63+
.addRemote("origin", skeleton.config.repo.uri)
64+
.catch(console.warn);
6365
await tempGit.fetch("origin", skeleton.config.repo.branch);
6466
// no js cherry pick implementation
6567
const cherryPick = createCherryPick(tmpDir);

0 commit comments

Comments
 (0)