fix creating branch by moving hunks

This commit is contained in:
Nikita Galaiko 2023-07-05 16:08:22 +02:00
parent 84ea0e1e17
commit 75bafd01a8

View File

@ -36,7 +36,7 @@
if (e.type == 'finalize') {
const ownership = branchItems[0].files
.map((file) => file.id + ':' + file.hunks.map((hunk) => hunk.id.split(':')[1]).join(','))
.map((file) => file.id + ':' + file.hunks.map((hunk) => hunk.id).join(','))
.join('\n');
virtualBranches.createBranch(newBranchName(), ownership);