Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
connection.fetch(config, wrap(function (err, pack) {
log("onfetch", err, pack);
if (err) throw err;
serial(
parallel(
repo.importRefs(pack.refs),
repo.unpack(pack, config)
),
connection.close()
)(wrap(function (err) {
if (err) log("FAIL", err);
else log("DONE");
}));
}));
}, wrap(function (err, result) {
if (err) throw err;
serial(
parallel(
repo.importRefs(result.pack.refs),
repo.unpack(result.pack, config)
),
connection.close()
)(function (err) {
if (err) throw err;
log("DONE");
});
}));
}, wrap(function (err, result) {
if (err) throw err;
serial(
parallel(
repo.importRefs(result.pack.refs),
repo.unpack(result.pack, config)
),
connection.close()
)(function (err) {
if (err) throw err;
log("DONE");
});
}));
}