Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for git worktrees in tests #3434

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Apr 5, 2024

git worktrees use a .git file instead of a .git directory.
This PR fixes the places where we're assuming that .git is a directory.

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-integrations Issues pertaining to Aspire Integrations packages label Apr 5, 2024
@ReubenBond ReubenBond requested a review from radical April 5, 2024 21:02
@radical
Copy link
Member

radical commented Apr 5, 2024

I thought it might be a symlink, but it is literally a file as you mentioned:

$ cat .git
gitdir: /Users/ankj/dev/aspire/.git/worktrees/temp

@ReubenBond ReubenBond merged commit 5d631c6 into main Apr 5, 2024
8 checks passed
@ReubenBond ReubenBond deleted the rebond/fix-git-worktrees branch April 5, 2024 21:06
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants