lincd-cli 0.2.64 → 0.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils.js +3 -3
- package/package.json +1 -1
package/lib/utils.js
CHANGED
|
@@ -180,13 +180,13 @@ exports.getLastModifiedSourceTime = getLastModifiedSourceTime;
|
|
|
180
180
|
const getLastCommitTime = (packagePath) => {
|
|
181
181
|
// console.log(`git log -1 --format=%ci -- ${packagePath}`);
|
|
182
182
|
// process.exit();
|
|
183
|
-
return execPromise(`cd ${packagePath} && git log -1 --format="%h %ci" --
|
|
183
|
+
return execPromise(`cd ${packagePath} && git log -1 --format="%h %ci" -- .`)
|
|
184
184
|
.then((result) => __awaiter(void 0, void 0, void 0, function* () {
|
|
185
185
|
let commitId = result.substring(0, result.indexOf(' '));
|
|
186
186
|
let date = result.substring(commitId.length + 1);
|
|
187
187
|
let lastCommitDate = new Date(date);
|
|
188
|
-
let changes = yield execPromise(`cd ${packagePath} && git show --stat --oneline ${commitId} --
|
|
189
|
-
// log(packagePath,result,
|
|
188
|
+
let changes = yield execPromise(`cd ${packagePath} && git show --stat --oneline ${commitId} -- .`);
|
|
189
|
+
// log(packagePath, result, lastCommitDate);
|
|
190
190
|
// log(changes);
|
|
191
191
|
return { date: lastCommitDate, changes, commitId };
|
|
192
192
|
}))
|