Add orig_commit.

Fixes #2032