Fix commit is gone recovery, refs #1130
Update source/dist refs when a commit is recovered from, fixes #1130