bugGNU tar - Bugs: bug #54408, tar --exclude-vcs-ignores does not...


bug #54408: tar --exclude-vcs-ignores does not properly work with negation (!) in .gitignore files

Submitter:  Michal Novotny <clime>
Submitted:  Mon 30 Jul 2018 12:49:46 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  In Progress
Privacy:  Public Assigned to:  gray
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Tue 31 Jul 2018 09:18:53 AM UTC, comment #1: 

Thanks for reporting. Allow me some time to fix it.

Sergey Poznyakoff <gray>
Group administrator
Mon 30 Jul 2018 12:49:46 PM UTC, original submission:  

If I make a .gitignore with .pyc line in it and then in a subdirectory I create another .gitignore with !.pyc line in it, it seems that the negation line in the nested .gitignore is not taken into account. If I put x.pyc file next to the nested .gitignore, it is still being ignored when e.g. `tar caf content.tar --exclude-vcs-ignores <upper_dir>` is invoked.

This above is not the greatest description so I prepared a reproducer (attached) to show the problem.

Can this be fixed?

Michal Novotny <clime>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #44658:  reproducer.tar added by clime (10KiB - application/x-tar)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gray (Posted a comment)
  • -email is unavailable- added by clime (Submitted the item)
  • -email is unavailable- added by clime

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-31 gray StatusNone In Progress
        Assigned toNone gray
    2018-07-30 clime Attached File- Added reproducer.tar, #44658
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code