mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
build
This commit is contained in:
@@ -27291,15 +27291,15 @@ async function improveCommitMessagesWithRebase({
|
||||
(0, import_fs2.writeFileSync)(
|
||||
`./rebase-exec.sh`,
|
||||
`
|
||||
#!/bin/bash
|
||||
count=$(cat count.txt)
|
||||
git commit --amend -F commit-$count.txt
|
||||
echo $(( count + 1 )) > count.txt
|
||||
#!/bin/bash
|
||||
count=$(cat count.txt)
|
||||
git commit --amend -F commit-$count.txt
|
||||
echo $(( count + 1 )) > count.txt
|
||||
`
|
||||
);
|
||||
await import_exec.default.exec(`chmod +x ./rebase-exec.sh`);
|
||||
await execPromise(
|
||||
`git rebase ${commitsToImprove[0].sha}^ --exec "git commit --amend -F ./rebase-exec.sh"`,
|
||||
`git rebase ${commitsToImprove[0].sha}^ --exec "./rebase-exec.sh"`,
|
||||
{
|
||||
env: {
|
||||
GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"',
|
||||
|
||||
@@ -185,17 +185,17 @@ async function improveCommitMessagesWithRebase({
|
||||
writeFileSync(
|
||||
`./rebase-exec.sh`,
|
||||
`
|
||||
#!/bin/bash
|
||||
count=$(cat count.txt)
|
||||
git commit --amend -F commit-$count.txt
|
||||
echo $(( count + 1 )) > count.txt
|
||||
#!/bin/bash
|
||||
count=$(cat count.txt)
|
||||
git commit --amend -F commit-$count.txt
|
||||
echo $(( count + 1 )) > count.txt
|
||||
`
|
||||
);
|
||||
|
||||
await exec.exec(`chmod +x ./rebase-exec.sh`);
|
||||
|
||||
await execPromise(
|
||||
`git rebase ${commitsToImprove[0].sha}^ --exec "git commit --amend -F ./rebase-exec.sh"`,
|
||||
`git rebase ${commitsToImprove[0].sha}^ --exec "./rebase-exec.sh"`,
|
||||
{
|
||||
env: {
|
||||
GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"',
|
||||
|
||||
Reference in New Issue
Block a user