@restroom-mw/git
Advanced tools
Comparing version 0.13.1-514f76b.75 to 0.13.1-69dae1d.83
@@ -70,3 +70,5 @@ "use strict"; | ||
yield Promise.all(commit.files.map((file) => { | ||
return isomorphic_git_1.default.add({ fs: fs_1.default, dir: absoluteRepo, filepath: file }); | ||
const absoluteFile = path_1.default.resolve(path_1.default.join(exports.FILES_DIR, file)); | ||
return isomorphic_git_1.default.add({ fs: fs_1.default, dir: absoluteRepo, | ||
filepath: path_1.default.relative(absoluteRepo, absoluteFile) }); | ||
})); | ||
@@ -73,0 +75,0 @@ yield isomorphic_git_1.default.commit({ fs: fs_1.default, dir: absoluteRepo, |
{ | ||
"name": "@restroom-mw/git", | ||
"version": "0.13.1-514f76b.75+514f76b", | ||
"version": "0.13.1-69dae1d.83+69dae1d", | ||
"description": "Git middleware for restroom", | ||
@@ -39,3 +39,3 @@ "author": "Alberto Lerda <alberto@dyne.org>", | ||
}, | ||
"gitHead": "514f76baa214524ecfa09722b8a823026813ba17", | ||
"gitHead": "69dae1df2b90346c016aadea221fdd63d86ba2fb", | ||
"devDependencies": { | ||
@@ -42,0 +42,0 @@ "turbo": "^1.2.9" |
@@ -76,3 +76,5 @@ import { Restroom } from "@restroom-mw/core"; | ||
await Promise.all(commit.files.map((file) => { | ||
return git.add({fs, dir: absoluteRepo, filepath: file}) | ||
const absoluteFile = path.resolve(path.join(FILES_DIR, file)); | ||
return git.add({fs, dir: absoluteRepo, | ||
filepath: path.relative(absoluteRepo, absoluteFile)}) | ||
})) | ||
@@ -79,0 +81,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
45564
218