Skip to content

Commit 6911474

Browse files
authored
fix: api-push now includes path for additions (#557)
1 parent e703142 commit 6911474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/git/gogit/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (g *Git) LastCommitChanges() (internalgit.Changes, error) {
274274
return internalgit.Changes{}, errors.WithMessage(err, "could not read file")
275275
}
276276

277-
additions[to.Name] = bytes
277+
additions[change.To.Name] = bytes
278278
} else if action == merkletrie.Delete {
279279
deletions = append(deletions, change.From.Name)
280280
}

0 commit comments

Comments
 (0)