Updated commit.go and hook.go.