git: Patch away some /tmp usage