composer / composer/satis

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

Open
#204 2 comments 0 reactions 0 assignees View on GitHub
bug support
Dominant language
PHP
Stars
3.3k
Forks
530
Avg merge
6h 53m
Merged PRs (30d)
13

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.