satis icon indicating copy to clipboard operation
satis copied to clipboard

Bug: .gitignore rules are not handled as one might expect

Open jrunestone opened this issue 10 years ago • 2 comments

I looked but I couldn't find this exact issue but it's related to the various .gitignore issues I'm sure. I'm not sure if this is an issue with satis (probably not) or with composer itself but the following rules in gitignore are ignored or misinterpreted because when creating archive files they all disappear completely (instead of excluding them from the first ignore rule):

/www/wp-content/* !/www/wp-content/index.php !/www/wp-content/themes/ !/www/wp-content/plugins/ !/www/wp-content/languages/

I.e. the resulting tar archive file contains an empty wp-content folder.

EDIT: it works as expected for files, but not folders.

jrunestone avatar Feb 03 '15 14:02 jrunestone

@swemaniac I had the same problem, and removing the trailing slash after the folder names seemed to fix it for me. Can you try that?

I think there's still a bug; with git in whether you have a trailing slash or not the folder is re-included, however with Satis the file isn't included in the archive when you use a trailing slash.

joestrong avatar Feb 19 '16 16:02 joestrong

This issue is related with https://github.com/composer/satis/issues/492

vaxul avatar Sep 25 '18 14:09 vaxul