Git development
 help / color / mirror / Atom feed
* git archive ignores .gitignored files?
@ 2007-07-26 17:32 Brian Downing
  2007-07-26 17:36 ` Brian Downing
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Downing @ 2007-07-26 17:32 UTC (permalink / raw)
  To: git

git archive seems to not output files marked in .gitignore.  I find
this behavior a little perplexing, since it does not create an archive
from the working directory, and if something is committed, even if it
is marked in .gitignore, it should probably wind up in the archive.

The reason I discovered this is that I'm trying to keep a debian build
branch for Git, and the debain/git-daemon directory was mysteriously
missing from anything generated with git archive, as "git-daemon" is
in Git's /.gitignore.

Is this intended behavior?  It seems kind of a misfeature to me.

(Of course it's possible /.gitarchive should have "/git-daemon" rather
than "git-daemon"; that's certainly how I will work around the issue.)

-bcd

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git archive ignores .gitignored files?
  2007-07-26 17:32 git archive ignores .gitignored files? Brian Downing
@ 2007-07-26 17:36 ` Brian Downing
  2007-07-26 17:54   ` Brian Downing
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Downing @ 2007-07-26 17:36 UTC (permalink / raw)
  To: git

On Thu, Jul 26, 2007 at 12:32:06PM -0500, Brian Downing wrote:
> git archive seems to not output files marked in .gitignore.

Never mind; it is "git add" that ignored the file.  Oops.

-bcd

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git archive ignores .gitignored files?
  2007-07-26 17:36 ` Brian Downing
@ 2007-07-26 17:54   ` Brian Downing
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Downing @ 2007-07-26 17:54 UTC (permalink / raw)
  To: git

On Thu, Jul 26, 2007 at 12:36:35PM -0500, Brian Downing wrote:
> On Thu, Jul 26, 2007 at 12:32:06PM -0500, Brian Downing wrote:
> > git archive seems to not output files marked in .gitignore.
> 
> Never mind; it is "git add" that ignored the file.  Oops.

For what it's worth, if I do (in the git tree):

mkdir foo
touch foo/file
mkdir foo/git-daemon
touch foo/git-daemon/file

"git add foo" does not produce any warnings that "foo/git-daemon" was
ignored.  If "foo/file" does not exist it warns that "foo" was not
added.

-bcd

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-26 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26 17:32 git archive ignores .gitignored files? Brian Downing
2007-07-26 17:36 ` Brian Downing
2007-07-26 17:54   ` Brian Downing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox