querysub 0.278.0 → 0.280.0
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/package.json +1 -1
- package/src/4-deploy/git.ts +2 -2
package/package.json
CHANGED
package/src/4-deploy/git.ts
CHANGED
|
@@ -25,7 +25,7 @@ export async function commitAndPush(config: {
|
|
|
25
25
|
gitDir: string;
|
|
26
26
|
message: string;
|
|
27
27
|
}) {
|
|
28
|
-
//
|
|
28
|
+
// Use a file to handle newlines, etc
|
|
29
29
|
const tempFile = path.join(os.tmpdir(), `commit-message-${Date.now()}-${Math.random().toString(36).substr(2, 9)}.txt`);
|
|
30
30
|
|
|
31
31
|
try {
|
|
@@ -51,7 +51,7 @@ export async function getGitRefInfo(config: {
|
|
|
51
51
|
description: string;
|
|
52
52
|
}> {
|
|
53
53
|
const timeOutput = await runPromise(`git show --format="%ct" -s ${config.ref}`, { cwd: config.gitDir });
|
|
54
|
-
const descriptionOutput = await runPromise(`git show --format="%
|
|
54
|
+
const descriptionOutput = await runPromise(`git show --format="%B" -s ${config.ref}`, { cwd: config.gitDir });
|
|
55
55
|
|
|
56
56
|
return {
|
|
57
57
|
time: parseInt(timeOutput.trim(), 10) * 1000,
|