Question: Will it accidentally deletes other temp directories? #2808

Closed
opened 2025-11-02 04:49:11 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ghost on GitHub (Jan 24, 2019).

For example, my local-repo folder is in /tmp/local-repo

ec31ee1c1c/models/pull.go (L399)
local-repo and merge-xxxxxx.git
Both of these two directories will be deleted after a PR was merged.
So my question is what happens if merging multiple PRs at the same time. Is it a potential problem? Because local-repo will be deleted as well.

Originally created by @ghost on GitHub (Jan 24, 2019). For example, my local-repo folder is in `/tmp/local-repo` https://github.com/go-gitea/gitea/blob/ec31ee1c1cd028dc59292e19d4b1c9dd954ba364/models/pull.go#L399 `local-repo` and `merge-xxxxxx.git` Both of these two directories will be deleted after a PR was merged. So my question is what happens if merging multiple PRs at the same time. Is it a potential problem? Because `local-repo` will be deleted as well.
Author
Owner

@lafriks commented on GitHub (Jan 24, 2019):

local-repo will not be deleted for each merge unique directory is created

@lafriks commented on GitHub (Jan 24, 2019): `local-repo` will not be deleted for each merge unique directory is created
Author
Owner

@ghost commented on GitHub (Jan 24, 2019):

local-repo will not be deleted for each merge unique directory is created

@lafriks Please check #5829

@ghost commented on GitHub (Jan 24, 2019): > `local-repo` will not be deleted for each merge unique directory is created @lafriks Please check #5829
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2808