bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] exclude-vcs-ignores bug


From: Serge Matveenko
Subject: [Bug-tar] exclude-vcs-ignores bug
Date: Wed, 07 Dec 2016 09:23:10 +0000

Hello everybody!

It looks like I've found bug in tar.

When used to create archive with option `--exclude-vcs-ignores` tar treats `.gitignore` patterns as shell patterns while they are not.

Consider the following example.

$ tar c --exclude-vcs-ignores -f ../tartest.tar .
$ tar tf ../tartest.tar 
./
$ ls -1lA
total 8
1
.2
.git
.gitignore
$ cat .gitignore 
.*

Expected result is for `1` to be found in the archive.
 
In this case git ignores `.2` and `.gitignore` files while tar ignores everything.
`.*` means "ignore everything starting with .". This is not a regex.

It is expected for `--exclude-vcs-ignores` to mimic VCS' ignore logic.


Thank you and keep up the good work!

--
Serge Matveenko
mailto: address@hidden
github: https://github.com/lig/
aboutme: https://about.me/lig1

reply via email to

[Prev in Thread] Current Thread [Next in Thread]