run-command: use prepare_git_cmd() in prepare_cmd()