patchGNU tar - Patches: patch #9802, false positive...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9802: false positive --exclude-vcs-ignore match for .*

Submitted by:  Masahiro Yamada <masahiroy>
Submitted on:  Fri 03 May 2019 09:47:01 AM UTC  
 
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Fri 03 May 2019 09:49:32 AM UTC, comment #1: 

Sorry, this should go to "Bugs" instead of "Patches".

Masahiro Yamada <masahiroy>
Fri 03 May 2019 09:47:01 AM UTC, original submission:  

The pattern '.*' should ignore
any files that start with a dot.

However, --exclude-vcs-ignore wrongly excludes everything
if the current directory is specified for archiving.

[How to reproduce]

$ mkdir test
$ cd test
$ echo '.*' > .gitignore
$ touch foo
$ cat .gitignore
.*
$ find .
.
./.gitignore
./foo
$ tar cf ../archive.tar --exclude-vcs-ignore .
$ tar tf ../archive.tar
./

I believe the correct behavior is ../archive.tar should contain:
./
./foo

(./foo should not excluded)

Masahiro Yamada <masahiroy>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by masahiroy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5