node-git-server
Advanced tools
@@ -0,1 +1,5 @@ | ||
# 0.6.1 (03/03/2019) | ||
- Fixes bug with being able to overwrite git repos that a user doesn't have access to. @masasron | ||
# 0.6.0 (03/03/2019) | ||
@@ -2,0 +6,0 @@ |
@@ -146,3 +146,3 @@ const fs = require('fs'); | ||
this.dirMap = (dir) => { | ||
return (path.normalize(dir ? path.resolve(repoDir, dir) : repoDir)); | ||
return (path.normalize(dir ? path.join(repoDir, dir) : repoDir)); | ||
}; | ||
@@ -149,0 +149,0 @@ } |
{ | ||
"name": "node-git-server", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "🎡 A configurable git server written in Node.js", | ||
@@ -5,0 +5,0 @@ "author": "Gabriel J. Csapo <gabecsapo@gmail.com>", |
@@ -132,3 +132,3 @@ # node-git-server | ||
autoCreate: true, | ||
authenticate: (type, repo, user, next) => { | ||
authenticate: ({type, repo, user}, next) => { | ||
if(type == 'push') { | ||
@@ -135,0 +135,0 @@ user((username, password) => { |
586202
0.02%