Support git repo as input_dir argument.