Skip to content

Commit c47b404

Browse files
add allowTipSHA1InWant
1 parent 4d96539 commit c47b404

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ function handleGitRequest (req, res, rootDir, urlPath) {
181181
GIT_PROJECT_ROOT: rootDir,
182182
GIT_HTTP_EXPORT_ALL: '', // allow read-only
183183
GIT_HTTP_RECEIVE_PACK: 'true', // enable push support
184+
GIT_CONFIG_PARAMETERS: `'uploadpack.allowTipSHA1InWant=true'`, // allow fetching specific commits by SHA
184185
PATH_INFO: actualUrlPath,
185186
REQUEST_METHOD: req.method,
186187
CONTENT_TYPE: req.headers['content-type'] || '',

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nosdav-server",
3-
"version": "0.0.60",
3+
"version": "0.0.61",
44
"description": "nosdav server",
55
"main": "index.js",
66
"type": "module",
@@ -33,4 +33,4 @@
3333
"path": "^0.12.7",
3434
"url": "^0.11.0"
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)