Re: [PATCH 1/2] worktree setup: return to original cwd if prefix is set NULL
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jul 23, 2010, 14:38 UTC
- Message-ID
- <AANLkTimkwfetLWynKCGVxMT0ZzHOZQp_iknrohoV8A79@mail.gmail.com>
- In-Reply-To
- <1279886651-14590-1-git-send-email-pclouds@gmail.com>
2010/7/23 Nguyễn Thái Ngọc Duy <pclouds@gmail.com>:
Show 11 quoted lines
> +test_expect_success 'cwd is unchanged when prefix is NULL (from within a repo)' ' > + ( > + cd repo.git/objects && > + echo 1 > one && > + cp one expected && > + echo 2 >> expected && > + git apply patch && > + test_cmp expected one && > + rm one expected patch > + ) > +'
Is the rm at the end needed here?
This is a minor nit, but it's generally helpful for debugging tests that things aren't removed if the --debug option is specified.