Remove some git-mac legacy code

Signed-off-by: Bao Haojun <baohaojun@gmail.com>