(branch: string, labelForOutDir: string)
| 140 | } |
| 141 | |
| 142 | function buildBranch(branch: string, labelForOutDir: string) { |
| 143 | run(`git fetch --tags --prune origin ${branch}`, { |
| 144 | cwd: currentDocsWorkspace, |
| 145 | inherit: true, |
| 146 | }); |
| 147 | const localRef = `refs/heads/${branch}`; |
| 148 | const targetRef = hasLocalRef(localRef) ? localRef : `origin/${branch}`; |
| 149 | return buildRef(targetRef, labelForOutDir); |
| 150 | } |
| 151 | |
| 152 | function buildTag(tag: string) { return buildRef(`refs/tags/${tag}`, tag); } |
| 153 |
no test coverage detected
searching dependent graphs…