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

worktree: Don't remove root directory when cleaning #230

Merged
merged 1 commit into from Jan 27, 2021
Merged

worktree: Don't remove root directory when cleaning #230

merged 1 commit into from Jan 27, 2021

Conversation

hansmi
Copy link
Contributor

@hansmi hansmi commented Dec 25, 2020

When using a separate worktree directory while working on a bare repository, cleaning with CleanOptions{Dir: true} would also remove the root worktree directory if empty.

When using a separate worktree directory while working on a bare
repository, cleaning with CleanOptions{Dir: true} would also remove the
root worktree directory if empty.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
@mcuadros mcuadros merged commit 024d62b into go-git:master Jan 27, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants