[git] Added a control in post-checkout