Avoid duplicate arguments to commit-tree.