(repoPath: string, remoteName: string, remoteUrl: string)
| 136 | } |
| 137 | |
| 138 | export function addOrUpdateRemote(repoPath: string, remoteName: string, remoteUrl: string) { |
| 139 | try { |
| 140 | const existing = runGit(['remote', 'get-url', remoteName], repoPath); |
| 141 | if (existing !== remoteUrl) { |
| 142 | runGit(['remote', 'set-url', remoteName, remoteUrl], repoPath); |
| 143 | } |
| 144 | } catch { |
| 145 | runGit(['remote', 'add', remoteName, remoteUrl], repoPath); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | export function commitAll(repoPath: string, message: string) { |
| 150 | try { |
no test coverage detected