@restroom-mw/git
Advanced tools
Comparing version 0.13.1-01c588e.79 to 0.13.1-18d61c6.81
@@ -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-01c588e.79+01c588e", | ||
"version": "0.13.1-18d61c6.81+18d61c6", | ||
"description": "Git middleware for restroom", | ||
@@ -39,3 +39,3 @@ "author": "Alberto Lerda <alberto@dyne.org>", | ||
}, | ||
"gitHead": "01c588e01a51bba105b5076be7f7d007b266cd59", | ||
"gitHead": "18d61c65ec415d0b08b60a30a83406d7b015dc7f", | ||
"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