Commit 11127c0

Anton Golub <antongolub@antongolub.com>
2024-12-05 00:12:30
fix: fix repo ready status on pull
1 parent fc876eb
Changed files (1)
src/repo.ts
@@ -41,11 +41,11 @@ export function getRepo({
       log.info('Fetching from git...')
       if (fs.existsSync(path.resolve(cwd, '.git'))) {
         $`git pull`
-        return
+      } else {
+        $`git clone --depth=1 ${gitUrl} .`
+        $`git config user.name ${gitName}`
+        $`git config user.email ${gitEmail}`
       }
-      $`git clone --depth=1 ${gitUrl} .`
-      $`git config user.name ${gitName}`
-      $`git config user.email ${gitEmail}`
       ready = true
     },
     push() {