git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Date
Jun 4, 2013, 22:18 UTC
Message-ID
<1370384339.31882.YahooMailNeo@web172702.mail.ir2.yahoo.com>

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
Next: Gianfranco Costamagna
Message 1 of 6 in “git archive --worktree-attributes doesn't exclude .gitattributes anymore”
  1. Gianfranco CostamagnaJun 4, 2013
  2. I: git archive --worktree-attributes doesn't exclude .gitattributes anymoreGianfranco Costamagna, Jun 4, 2013
  3. Jeff KingJun 5, 2013
  4. Jeff KingJun 5, 2013
  5. Gianfranco CostamagnaJun 5, 2013
  6. I: git archive --worktree-attributes doesn't exclude .gitattributes anymoreGianfranco Costamagna, Jun 5, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.