fix: try to empty clone directory that is not empty #1277
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/runner!1277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "aahlenst/runner:non-empty-clone-dir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When cloning an action or a workflow with
git, the target directory might not be empty, for example, due to a failed cloning attempt. Because the target directory's name is derived from the repository's URL that is about to be cloned, it would be an unrecoverable situation and would require human intervention to resolve it. To reduce the likelihood of such a situation, Forgejo Runner will try to delete the directory before cloning the repository containing the action or workflow.WIP: fix: try to empty clone directory that is not emptyto fix: try to empty clone directory that is not emptyMakes sense to me, and the early-exit in
cloneIfRequiredif the repo is already in-place prevents this from being an always-clone situation. 👍