Skip to content

Commit

Permalink
fix(cp): should reverse the selected hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
dingff committed Aug 21, 2024
1 parent 1c72385 commit cceebe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ const handles = {
])
).data
const hashes = selectedCommits.map((item) => item.split(' ')[0].split(')')[1])
await startSpawn('git', ['cherry-pick', ...hashes])
await startSpawn('git', ['cherry-pick', ...hashes.reverse()])
handleSuccess()
} catch (err) {}
},
Expand Down

0 comments on commit cceebe1

Please sign in to comment.