(projectId: string)
| 57 | } |
| 58 | |
| 59 | export async function hasHeadCommit(projectId: string) { |
| 60 | try { |
| 61 | await runGit(projectId, ['rev-parse', '--verify', 'HEAD']) |
| 62 | return true |
| 63 | } catch { |
| 64 | return false |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | export async function withTemporaryIndex<T>( |
| 69 | projectId: string, |
no test coverage detected