* Handle errors generated by git show-ref * * Promise will resolve with false if exited normally * * @api private * @return Promise
(err)
| 76 | */ |
| 77 | |
| 78 | function handleShowRefVerifyError (err) { |
| 79 | if (err && err.code && err.code === 1) { |
| 80 | // ref does not exist |
| 81 | return Promise.resolve(false); |
| 82 | } |
| 83 | return Promise.reject(err); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * See if ref is a local branch |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…