Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Apr 14, 2025

Add a prefix to worktree so that cleanup leftovers from past deploy is possible

It also moves the worktree into the .quarto scratch directory. It seems cleaner to hide it in this folder with is usually git ignored in quarto project. I have checked it works ok as worktrees are managed by git itself, and independant of main .gitignored. Also we now always call worktree remove for a new quarto publish gh-pages if there is a leftover

If that seems to be too dangerous, the worktree folder could still be moved in main project folder.

This is hard to test as we need an interrupt to recreate the leftover problem...

@cderv cderv linked an issue Apr 14, 2025 that may be closed by this pull request
@cderv cderv requested a review from cscheid April 14, 2025 13:10
Copy link
Collaborator

@cscheid cscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@cscheid cscheid merged commit 5768c1f into main Apr 14, 2025
49 checks passed
@cscheid cscheid deleted the fix/publish-gh-pages-worktree branch April 14, 2025 16:01
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.

GitHub worktree issue

3 participants