Skip to content

Commit 79781a4

Browse files
gitsterGit for Windows Build Agent
authored andcommitted
Merge branch 'kn/reflog-migration-fix'
"git refs migrate" for migrating reflog data was broken. * kn/reflog-migration-fix: reftable: write correct max_update_index to header Signed-off-by: Johannes Schindelin <[email protected]>
2 parents d1d9a12 + 6b00a1a commit 79781a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

refs/reftable-backend.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,9 @@ static int reftable_be_transaction_finish(struct ref_store *ref_store UNUSED,
16311631
struct reftable_transaction_data *tx_data = transaction->backend_data;
16321632
int ret = 0;
16331633

1634+
if (tx_data->args)
1635+
tx_data->args->max_index = transaction->max_index;
1636+
16341637
for (size_t i = 0; i < tx_data->args_nr; i++) {
16351638
tx_data->args[i].max_index = transaction->max_index;
16361639

0 commit comments

Comments
 (0)