(ref, callback)
| 23 | |
| 24 | let lock |
| 25 | export async function acquireLock(ref, callback) { |
| 26 | if (lock === undefined) lock = new AsyncLock() |
| 27 | return lock.acquire(ref, callback) |
| 28 | } |
| 29 | |
| 30 | // make sure filepath, blob type and blob object (from loose objects) plus oid are in sync and valid |
| 31 | async function checkAndWriteBlob(fs, gitdir, dir, filepath, oid = null) { |
no test coverage detected
searching dependent graphs…