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

Support for git worktrees #1383

Open
awinki opened this issue May 21, 2024 · 0 comments
Open

Support for git worktrees #1383

awinki opened this issue May 21, 2024 · 0 comments

Comments

@awinki
Copy link

awinki commented May 21, 2024

Description

I use git worktrees a lot on my machine, but i can't use our nuke build script to build our solutions. I always get the following error:

Unhandled exception. System.ArgumentException: No parent Git directory for 'D:\Development'
   at Nuke.Common.Assert.NotNull[T](T obj, String message, String argumentExpression) in /_/source/Nuke.Utilities/Assert.cs:line 73
   at Nuke.Common.Git.GitRepository.FromLocalDirectory(AbsolutePath directory) in /_/source/Nuke.Build/VCS/GitRepository.cs:line 49

Instead of a ".git" folder there's just ".git" file, when working with git worktrees.

Usage Example

No response

Alternative

No response

Could you help with a pull-request?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant