Use subshell and 'cd' instead of --git-dir and --work-tree for 'git pull'.