Skip to content

Commit

Permalink
fix: picking wrong commit to cherry-pick if submodule branch is alrea…
Browse files Browse the repository at this point in the history
…dy up-to-date (#6)
  • Loading branch information
vitorhugods authored Apr 29, 2024
1 parent b042256 commit a8da590
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export async function fastForwardSubmodule(
await gitExec([
'commit',
'-m',
`Update submodule ${submoduleName} to latest from ${targetBranch}`
`Update submodule ${submoduleName} to latest from ${targetBranch}`,
'--allow-empty'
])
const commitSha = mergedPR.merge_commit_sha
if (commitSha == null) {
Expand Down

0 comments on commit a8da590

Please sign in to comment.