Re: [RFC/PATCH 7/8] update-index: prevent --untracked-cache from performing tests
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Dec 7, 2015, 05:40 UTC
- Message-ID
- <CAP8UFD0Dp9KD=EqjSC4O3Gz=QcY11BuN0YC0ChN7mMjWc1LMyg@mail.gmail.com>
- In-Reply-To
- <CACsJy8BhcrOz=JT=ESoG_Jgf=_4VP+kB7wGoofZ7LoVP_t4Vvw@mail.gmail.com>
On Wed, Dec 2, 2015 at 8:18 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 13 quoted lines
> On Tue, Dec 1, 2015 at 9:31 PM, Christian Couder
> <christian.couder@gmail.com> wrote:
> diff --git a/t/t7063-status-untracked-cache.sh
> b/t/t7063-status-untracked-cache.sh
>> index 0e8d0d4..8c3e703 100755
>> --- a/t/t7063-status-untracked-cache.sh
>> +++ b/t/t7063-status-untracked-cache.sh
>> @@ -11,7 +11,7 @@ avoid_racy() {
>> # It's fine if git update-index returns an error code other than one,
>> # it'll be caught in the first test.
>
> Notice this comment. You probably have to chance --test-untr.. for the
> first test too if it's stilll true, or delete the comment.Ok, I think I will remove the comment and still use "git update-index --untracked-cache" in the first test.
Show 5 quoted lines
>> test_lazy_prereq UNTRACKED_CACHE '
>> - { git update-index --untracked-cache; ret=$?; } &&
>> + { git update-index --test-untracked-cache; ret=$?; } &&
>> test $ret -ne 1
>> 'Thanks, Christian.