You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Case above shows only exclusion of sub-file, but with .gitignore there is a way to "un-exclude file/dirs excluded by files on higher levels".
Actual result: project have file ./project/vendor/gitignore-issue/lib/static/this-file-project-should-not-have
Expected result: project doesn't have file ./project/vendor/gitignore-issue/lib/static/this-file-project-should-not-have. Reason for this this file is ignored by ./lib/static/.gitignore
composer update -vvv output
$ composer update -vvv
Reading ./composer.json
Loading config file /Users/user/.composer/config.json
Loading config file /Users/user/.composer/auth.json
Loading config file ./composer.json
Checked CA file /usr/local/etc/openssl@1.1/cert.pem: valid
Executing command (/private/tmp/test/project): git branch -a --no-color --no-abbrev -v
Executing command (/private/tmp/test/project): git describe --exact-match --tags
Executing command (CWD): git --version
Executing command (/private/tmp/test/project): git log --pretty="%H" -n1 HEAD --no-show-signature
Executing command (/private/tmp/test/project): hg branch
Executing command (/private/tmp/test/project): fossil branch list
Executing command (/private/tmp/test/project): fossil tag list
Executing command (/private/tmp/test/project): svn info --xml
Reading /Users/user/.composer/composer.json
Loading config file /Users/user/.composer/config.json
Loading config file /Users/user/.composer/auth.json
Loading config file /Users/user/.composer/composer.json
Loading config file /Users/user/.composer/auth.json
Reading /Users/user/.composer/auth.json
Reading /Users/user/.composer/vendor/composer/installed.json
Running 2.0.8 (2020-12-03 17:20:38) with PHP 7.4.14 on Darwin / 19.6.0
Loading composer repositories with package information
Executing command (/private/tmp/test/lib/): git branch -a --no-color --no-abbrev -v
Executing command (/private/tmp/test/lib/): git describe --exact-match --tags
Executing command (/private/tmp/test/lib/): git log --pretty="%H" -n1 HEAD --no-show-signature
Executing command (/private/tmp/test/lib/): hg branch
Executing command (/private/tmp/test/lib/): fossil branch list
Executing command (/private/tmp/test/lib/): fossil tag list
Executing command (/private/tmp/test/lib/): svn info --xml
Updating dependencies
Generating rules
Resolving dependencies through SAT
Looking at all rules.
Dependency resolution completed in 0.000 seconds
Analyzed 108 packages to resolve dependencies
Analyzed 108 rules to resolve dependencies
Lock file operations: 1 install, 0 updates, 0 removals
Installs: gitignore-issue/lib:dev-master
- Locking gitignore-issue/lib (dev-master)
Writing lock file
Installing dependencies from lock file (including require-dev)
Reading ./composer.lock
Package operations: 1 install, 0 updates, 0 removals
Installs: gitignore-issue/lib:dev-master
- Installing gitignore-issue/lib (dev-master): Mirroring from ../lib
Generating autoload files
composer diagnose
$ composer diagnose
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.0.8
PHP version: 7.4.14
PHP binary path: /usr/local/Cellar/php@7.4/7.4.14_1/bin/php
OpenSSL version: OpenSSL 1.1.1i 8 Dec 2020
cURL version: 7.75.0-DEV libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1i
zip: extension present, unzip present
The text was updated successfully, but these errors were encountered:
Currently (2.0.8) composer support only top-level
.gitignore
file, but git allows to use.gitignore
files at any level.Proposal: add support for
.gitignore
at any level, not just top-levelTest case uses mirroring, but it applies to any handling of
.gitignore
Case above shows only exclusion of sub-file, but with
.gitignore
there is a way to "un-exclude file/dirs excluded by files on higher levels".Actual result: project have file
./project/vendor/gitignore-issue/lib/static/this-file-project-should-not-have
Expected result: project doesn't have file
./project/vendor/gitignore-issue/lib/static/this-file-project-should-not-have
. Reason for this this file is ignored by./lib/static/.gitignore
composer update -vvv output
composer diagnose
The text was updated successfully, but these errors were encountered: