Skip to content

Commit 4cbcc63

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

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy