git archive --worktree-attributes doesn't exclude .gitattributes anymore

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

git archive --worktree-attributes doesn't exclude .gitattributes anymore

From: Gianfranco Costamagna <hidden>
Date: 2016-06-15 22:57:33

git version 1.8.1.2
(please cc me, I'm not subscribed to this list)


Hi Developers, I write here because since my ubuntu update (quantal to raring)
and git update from 1.7.10.4-1ubuntu1 to 1.8.1.2

my export script doesn't work anymore.

I tried to put .gitattributes or .git/info/attributes, the file is the following
http://pastebin.com/irngA1L8

the git is
git clone http://boinc.berkeley.edu/git/boinc-v2.git

and the command is

git archive --prefix boinc-7.1.7+dfsg/ --format tgz -o ../boinc_7.1.7+dfsg.orig.tar.gz -9  client_release/7.1/7.1.7

The archive gets created, but every file is inside, no exclusions at all.

I suspect a regression between git 1.7 and 1.8

thanks for your time


Gianfranco

I: git archive --worktree-attributes doesn't exclude .gitattributes anymore

From: Gianfranco Costamagna <hidden>
Date: 2016-06-15 22:57:33

Forgot to mention, also this command doesn't work


git archive --worktree-attributes  -v --format tgz -o ../boinc_7.1.7+dfsg.orig.tar.gz -9 --prefix boinc-7.1.7+dfsg/ client_release/7.1/7.1.7


Gianfranco



----- Messaggio inoltrato -----
Da: Gianfranco Costamagna [off-list ref]
A: "git@vger.kernel.org" [off-list ref]
Cc: 
Inviato: Mercoledì 5 Giugno 2013 0:18
Oggetto: git archive --worktree-attributes doesn't exclude .gitattributes anymore

g it version 1.8.1.2
(please cc me, I'm not subscribed to this list)


Hi Developers, I write here because since my ubuntu update (quantal to raring)
and git update from 1.7.10.4-1ubuntu1 to 1.8.1.2

my export script doesn't work anymore.

I tried to put .gitattributes or .git/info/attributes, the file is the following
http://pastebin.com/irngA1L8

the git is
git clone http://boinc.berkeley.edu/git/boinc-v2.git

and the command is

git archive --prefix boinc-7.1.7+dfsg/ --format tgz -o 
../boinc_7.1.7+dfsg.orig.tar.gz -9  client_release/7.1/7.1.7

The archive gets created, but every file is inside, no exclusions at all.

I suspect a regression between git 1.7 and 1.8

thanks for your time


Gianfranco

Re: git archive --worktree-attributes doesn't exclude .gitattributes anymore

From: Jeff King <hidden>
Date: 2016-06-15 22:57:33

On Tue, Jun 04, 2013 at 11:18:59PM +0100, Gianfranco Costamagna wrote:
git version 1.8.1.2
[...]
I tried to put .gitattributes or .git/info/attributes, the file is the following
http://pastebin.com/irngA1L8
[...]
The archive gets created, but every file is inside, no exclusions at all.

I suspect a regression between git 1.7 and 1.8
Yes, there was a regression with matching directory names in
gitattributes in v1.8.1.1. The regression is fixed in v1.8.1.6 and
above.

If upgrading is too hard, I think you can work around it by putting
"win_build/" instead of "win_build" in your .gitattributes (after
v1.8.1.6, both should work for your case).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help