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 running in git worktree repositories #48

Open
vorph1 opened this issue Aug 12, 2024 · 0 comments
Open

Support running in git worktree repositories #48

vorph1 opened this issue Aug 12, 2024 · 0 comments

Comments

@vorph1
Copy link

vorph1 commented Aug 12, 2024

Hi, I'm getting an error when running in a repository using git worktrees - in this scenario there is no .git folder, instead the top level directory contains the usual .git folder contents and any number of worktree directories with working copies

Unhandled exception. System.InvalidOperationException: This tool should be run from within a git repository.
   at ReGitLint.Cleanup.GetGitDirectory() in /srv/ReGitLint/Cleanup.cs:line 426
   at ReGitLint.Cleanup.GetIncludeArgs(HashSet`1 filePaths) in /srv/ReGitLint/Cleanup.cs:line 322
   at ReGitLint.Cleanup.Run(String[] remainingArguments) in /srv/ReGitLint/Cleanup.cs:line 261
   at ManyConsole.ConsoleCommandDispatcher.DispatchCommand(IEnumerable`1 commands, String[] arguments, TextWriter consoleOut, Boolean skipExeInExpectedUsage)
   at ReGitLint.Program.Main(String[] args) in /srv/ReGitLint/Program.cs:line 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant