update: Use --git-dir instead of chdir