| 230 | } catch (error) { | 230 | } catch (error) { |
| 231 | // it is not a git repo, or has no commits yet, or is a bare repo | 231 | // it is not a git repo, or has no commits yet, or is a bare repo |
| 232 | // not possible to update it, most likely can't get the branch name either | 232 | // not possible to update it, most likely can't get the branch name either |
| 233 | return response.send({ currentBranchName: null, currentCommitHash, isUpToDate: true, remoteUrl: null }); | 233 | return response.send({ currentBranchName: '', currentCommitHash: '', isUpToDate: true, remoteUrl: '' }); |
| 234 | } | 234 | } |
| 235 | | 235 | |
| 236 | const currentBranch = await git.cwd(extensionPath).branch(); | 236 | const currentBranch = await git.cwd(extensionPath).branch(); |