MCPcopy Create free account
hub / github.com/play-co/devkit / handleShowRefVerifyError

Function handleShowRefVerifyError

src/util/gitClient/functions.js:78–84  ·  view source on GitHub ↗

* Handle errors generated by git show-ref * * Promise will resolve with false if exited normally * * @api private * @return Promise

(err)

Source from the content-addressed store, hash-verified

76 */
77
78function 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…