diff --git a/node_modules/@ethicdevs/fastify-git-server/dist/helpers/sendInfoRefs.js b/node_modules/@ethicdevs/fastify-git-server/dist/helpers/sendInfoRefs.js
index 6a9b61e..1bb563e 100644
--- a/node_modules/@ethicdevs/fastify-git-server/dist/helpers/sendInfoRefs.js
+++ b/node_modules/@ethicdevs/fastify-git-server/dist/helpers/sendInfoRefs.js
@@ -6,16 +6,31 @@ var constants_1 = require("../constants");
var getGitPackMagicCode_1 = require("./getGitPackMagicCode");
var safeServiceToPackType_1 = require("./safeServiceToPackType");
var spawnGit_1 = require("./spawnGit");
-function sendInfoRefs(opts, packType, cwd, gitStream) {
- return new Promise(function (resolve) {
- var safePackType = (0, safeServiceToPackType_1.safeServiceToPackType)(packType);
- var process = (0, spawnGit_1.spawnGit)(opts, [safePackType, constants_1.GIT_STATELESS_RPC_FLAG, constants_1.GIT_ADVERTISE_REFS_FLAG], cwd);
- gitStream.write((0, getGitPackMagicCode_1.getGitPackMagicCode)(safePackType) +
- " service=git-" +
- safePackType +
- "\n0000");
- process.stdout.on("data", function (chunk) { return gitStream.write(chunk); });
- process.stdout.on("close", function () { return resolve(gitStream.end()); });
+function sendInfoRefs(_a) {
+ var cwd = _a.cwd, gitStream = _a.gitStream, opts = _a.opts, packType = _a.packType, repoSlug = _a.repoSlug, request = _a.request, requestMethod = _a.requestMethod, requestType = _a.requestType, username = _a.username;
+ return new Promise(function (resolve) {
+ opts?.onFetch({
+ type: "fetch",
+ message: null,
+ data: {
+ packType,
+ payload: null,
+ repoDiskPath: cwd,
+ repoSlug,
+ request,
+ requestMethod,
+ requestType,
+ username,
+ },
});
+ var safePackType = (0, safeServiceToPackType_1.safeServiceToPackType)(packType);
+ var process = (0, spawnGit_1.spawnGit)(opts, [safePackType, constants_1.GIT_STATELESS_RPC_FLAG, constants_1.GIT_ADVERTISE_REFS_FLAG], cwd);
+ gitStream.write((0, getGitPackMagicCode_1.getGitPackMagicCode)(safePackType) +
+ " service=git-" +
+ safePackType +
+ "\n0000");
+ process.stdout.on("data", function (chunk) { return gitStream.write(chunk); });
+ process.stdout.on("close", function () { return resolve(gitStream.end()); });
+ });
}
exports.sendInfoRefs = sendInfoRefs;
diff --git a/node_modules/@ethicdevs/fastify-git-server/dist/pluginFactory.js b/node_modules/@ethicdevs/fastify-git-server/dist/pluginFactory.js
index 1d677a6..fe3e421 100644
--- a/node_modules/@ethicdevs/fastify-git-server/dist/pluginFactory.js
+++ b/node_modules/@ethicdevs/fastify-git-server/dist/pluginFactory.js
@@ -109,7 +109,17 @@ var gitServerPluginAsync = function (server, opts) { return tslib_1.__awaiter(vo
reply.raw.writeHead(200, "OK", {
"content-type": "application/x-git-".concat(packType, "-advertisement"),
});
- return [4 /*yield*/, (0, sendInfoRefs_1.sendInfoRefs)(opts, packType, repoResult.gitRepositoryDir, gitStream)];
+ return [4 /*yield*/, (0, sendInfoRefs_1.sendInfoRefs)({
+ cwd: repoResult.gitRepositoryDir,
+ gitStream: gitStream,
+ opts: opts,
+ packType: packType,
+ repoSlug: repoSlug,
+ request: request,
+ requestMethod: requestMethod,
+ requestType: requestType,
+ username: (authCredentials === null || authCredentials === void 0 ? void 0 : authCredentials.username) || null,
+ })];
case 4:
_c.sent();
return [3 /*break*/, 11];