fix: Don't delete existing .git when using --no-git flag#12968
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
.git when using --no-git flag
anthonyshew
pushed a commit
that referenced
this pull request
May 28, 2026
## Release v2.9.16 > [!CAUTION] > Versioned docs aliasing FAILED. [View logs](https://github.com/vercel/turborepo/actions/runs/26579906777) ### Changes - release(turborepo): 2.9.15 (#12955) (`c85d410`) - fix: Avoid hanging PTY shutdown (#12958) (`52e81bd`) - fix: Retry npm tlog publish failures (#12959) (`5317f65`) - release(turborepo): 2.9.16-canary.1 (#12960) (`2284fa9`) - fix: Preserve nested Bun dependency versions (#12963) (`8d4eaf8`) - Revert "fix: Preserve nested Bun dependency versions" (#12964) (`3b1b6e9`) - release(turborepo): 2.9.16-canary.2 (#12961) (`5e5b248`) - fix: Preserve nested Bun dependency versions (#12965) (`7952b46`) - fix: Don't delete existing `.git` when using `--no-git` flag (#12968) (`b4aa626`) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
anthonyshew
pushed a commit
that referenced
this pull request
May 28, 2026
## Release v2.9.17-canary.1 > [!CAUTION] > Versioned docs aliasing FAILED. [View logs](https://github.com/vercel/turborepo/actions/runs/26586129373) ### Changes - fix: Preserve nested Bun dependency versions (#12963) (`8d4eaf8`) - Revert "fix: Preserve nested Bun dependency versions" (#12964) (`3b1b6e9`) - release(turborepo): 2.9.16-canary.2 (#12961) (`5e5b248`) - fix: Preserve nested Bun dependency versions (#12965) (`7952b46`) - fix: Don't delete existing `.git` when using `--no-git` flag (#12968) (`b4aa626`) - fix: Keep non-PTY stdin alive for persistent tasks (#12972) (`26ae68b`) - release(turborepo): 2.9.16 (#12970) (`fac2b75`) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Closes #12967. Users who pass
--no-gitexpect create-turbo to leave git alone, not initialize a repo or delete an existing.gitdirectory.What
Stops the
--no-gitpath from doing any git work and removes the now-unused.gitdeletion helper.How
Adds coverage that
--no-gitdoes not call the git init helper or spawn git commands, while preserving normal git initialization when the flag is not used.Verified with:
pnpm --filter create-turbo test -- --runTestsByPath __tests__/git.test.ts __tests__/index.test.tspnpm --filter create-turbo check-types