update pre-created session with commit info