git hook should work without double commit.