git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* clean bug on ignored subdirectories with no tracked files?
@ 2011-11-19  5:38 Jay Soffian
  2011-11-19 19:23 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Jay Soffian @ 2011-11-19  5:38 UTC (permalink / raw)
  To: git

git init test_repo &&
cd test_repo &&
mkdir -p foo/bar &&
echo baz > foo/bar/baz &&
echo /foo/bar > .gitignore &&
git add .gitignore &&
git clean -n -d

Initialized empty Git repository in .../test_repo/.git/
Would remove foo/

Seems surprising. The work-around is either using '/foo' in the
top-level .gitignore or adding a tracked file to the 'foo' directory.

j.

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

end of thread, other threads:[~2011-12-01 23:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-19  5:38 clean bug on ignored subdirectories with no tracked files? Jay Soffian
2011-11-19 19:23 ` Junio C Hamano
2011-11-21 18:51   ` Jay Soffian
2011-11-21 19:02     ` Junio C Hamano
2011-11-21 19:28       ` Junio C Hamano
2011-11-21 20:03         ` Jay Soffian
     [not found]           ` <CABURp0qv7MB-ZQvvSZQi43nAy1ZaR75-19T2Sd1JBT14Y_dG7w@mail.gmail.com>
2011-12-01 23:35             ` Phil Hord

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).