Skip to content

gitserver: Skip unpacking nested .git directories

Administrator requested to merge main-dry-run/ts/skip-nested-git-dirs into main

Created by: tsenart

We missed this case before, and just ran into [email protected] failing to clone in production because of it.

t=2022-03-14T12:41:15+0000 lvl=eror msg="runUpdateLoop: error updating repo" uri=npm/typescript err="repo npm/typescript:: failed to fetch: error pushing dependency "[email protected]": command [git init] failed with output fatal: not a git repository: /home/daniel/shared/TypeScript/.git/worktrees/TypeScript3: exit status 128"

Test plan

Integration test.

Merge request reports

Loading