Fix fallback Gitify-Cache-Folder#176
Fix fallback Gitify-Cache-Folder#176alroniks merged 7 commits intomodmore:masterfrom sebastian-marinescu:patch-1
Conversation
On my server I hit the last if condition. So Gitify tries to set the Gitify-Cache-Folder, named ".gitify", in the Gitify-Working-Dir, which also includes ".gitify" (the file). This failed, because the Gitify-Cache-Folder is the Gitify-Config-File. This changes the Gitify-Cache-Folder to ".gitify-cache".
|
Hi @sebastian-marinescu But when trait DownloadModx try download modx it checks folder here https://github.com/modmore/Gitify/blob/master/src/Mixins/DownloadModx.php#L51 and the funtion file_exists returns false if file exists and destination folder for package will not created. So you see error. if (!file_exists(GITIFY_CACHE_DIR) && !is_folder(GITIFY_CACHE_DIR)) {
mkdir(GITIFY_CACHE_DIR);
} |
…ing to it or deleting it
|
Hi @alroniks |
|
Hi @sebastian-marinescu After this fix, gitify will check |
|
Hi @alroniks and thanks for your reply! |
Fix fallback Gitify-Cache-Folder
|
Okay, I think this should be okay now, but I haven't tested it on the aforesaid server. |
|
Hi @alroniks I tested the fix on two projects and it works as expected. |
|
Thank you for merging! :) |
On my server I hit the last if condition. So Gitify tries to set the Gitify-Cache-Folder, named ".gitify", in the Gitify-Working-Dir, which also includes ".gitify" (the file). This failed, because the Gitify-Cache-Folder is the Gitify-Config-File.
This changes the Gitify-Cache-Folder to ".gitify-cache".