Re: [RFC/PATCH] Add test case for dealing with a tracked file in an ignored directory
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 18, 2010, 13:43 UTC
- Message-ID
- <AANLkTi=UJmXx0-fV6OqDTOzuTdQQWioUb=3vrVx01qi6@mail.gmail.com>
- In-Reply-To
- <1282123788-24055-1-git-send-email-gdb@mit.edu>
On Wed, Aug 18, 2010 at 09:29, Greg Brockman <gdb@mit.edu> wrote:
Show 6 quoted lines
> +cat >expect <<EOF > +The following paths are ignored by one of your .gitignore files: > +ignored-dir > +Use -f if you really want to add them. > +fatal: no files added > +EOF
Please make this a test, per this bit in t/README:
- Put all code inside test_expect_success and other assertions.
Even code that isn't a test per se, but merely some setup code should be inside a test assertion.