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 .*

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

Discussion locked!

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>

 

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

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 gray (Updated the item)
  • -email is unavailable- added by masahiroy (Submitted the item)
  •  

    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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-03 gray Open/ClosedOpen Closed
        Discussion LockNone Locked

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code