same fix for git. use "old_workdir" as in svn.py