@restroom-mw/git
Advanced tools
Comparing version 0.13.1-514f76b.75 to 0.13.1-5ccb015.88
@@ -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-5ccb015.88+5ccb015", | ||
"description": "Git middleware for restroom", | ||
@@ -39,3 +39,3 @@ "author": "Alberto Lerda <alberto@dyne.org>", | ||
}, | ||
"gitHead": "514f76baa214524ecfa09722b8a823026813ba17", | ||
"gitHead": "5ccb015a1b0aab9eff25b7360e0a49dafa94b174", | ||
"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
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
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