Skip to content

Commit

Permalink
Fix individual manual render removing step index
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed May 14, 2019
1 parent d136267 commit b81b622
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/manual.ts
Expand Up @@ -137,16 +137,16 @@ function renderManual(step?: string | (() => void)) {
Git(['add', symlinkPath]);
});

// Continue if should
if (shouldContinue) {
Git.print(['rebase', '--continue'], {
if (shouldContinue || Git.stagedFiles().length) {
Git.print(['commit', '--amend'], {
env: {
GIT_EDITOR: true,
},
});
// Amend only if necessary, otherwise there might be unexpected things going on
} else if (Git.stagedFiles().length) {
Git.print(['commit', '--amend'], {
}

if (shouldContinue) {
Git.print(['rebase', '--continue'], {
env: {
GIT_EDITOR: true,
},
Expand Down

0 comments on commit b81b622

Please sign in to comment.