(
configKey: string,
configValue = '.',
globalConfig?: boolean
)
| 107 | } |
| 108 | |
| 109 | async configExists( |
| 110 | configKey: string, |
| 111 | configValue = '.', |
| 112 | globalConfig?: boolean |
| 113 | ): Promise<boolean> { |
| 114 | const output = await this.exec( |
| 115 | [ |
| 116 | 'config', |
| 117 | globalConfig ? '--global' : '--local', |
| 118 | '--name-only', |
| 119 | '--get-regexp', |
| 120 | configKey, |
| 121 | configValue |
| 122 | ], |
| 123 | {allowAllExitCodes: true} |
| 124 | ) |
| 125 | return output.exitCode === 0 |
| 126 | } |
| 127 | |
| 128 | async fetch( |
| 129 | refSpec: string[], |
no test coverage detected