From: Junio C Hamano <gitster@pobox•com>
To: Johannes Sixt <j.sixt@viscovery•net>
Cc: Elia Pinto <gitter.spiros@gmail•com>,
git@vger•kernel.org, jrnieder@gmail•com
Subject: Re: [PATCH] git-submodule.sh: avoid "test <cond> -a/-o <cond>"
Date: Tue, 10 Jun 2014 08:36:30 -0700 [thread overview]
Message-ID: <xmqqtx7sai9t.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <53972229.5040104@viscovery.net> (Johannes Sixt's message of "Tue, 10 Jun 2014 17:20:09 +0200")
Johannes Sixt <j.sixt@viscovery•net> writes:
> Am 6/10/2014 16:55, schrieb Junio C Hamano:
>> Elia Pinto <gitter.spiros@gmail•com> writes:
>>
>>> @@ -832,7 +832,7 @@ Maybe you want to use 'update --init'?")"
>>> continue
>>> fi
>>>
>>> - if ! test -d "$sm_path"/.git -o -f "$sm_path"/.git
>>> + if ! test -d "$sm_path"/.git || test -f "$sm_path"/.git
>>
>> Which part of test conditions does that "!" apply in the original,
>> and in the updated?
>>
>> I think the new test after || also needs negation, no?
>
> Not just that; the || must be turned into && as well.
I think our mails crossed ;-)
next prev parent reply other threads:[~2014-06-10 15:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-10 12:28 [PATCH] git-submodule.sh: avoid "test <cond> -a/-o <cond>" Elia Pinto
2014-06-10 14:42 ` Junio C Hamano
2014-06-10 14:52 ` Torsten Bögershausen
2014-06-10 15:23 ` Junio C Hamano
2014-06-10 15:32 ` Junio C Hamano
2014-06-10 14:55 ` Junio C Hamano
2014-06-10 15:20 ` Johannes Sixt
2014-06-10 15:36 ` Junio C Hamano [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-06-10 16:43 Elia Pinto
2014-06-10 17:02 ` Junio C Hamano
2014-06-10 17:03 ` Junio C Hamano
2014-06-10 19:47 ` Eric Sunshine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqtx7sai9t.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=gitter.spiros@gmail$(echo .)com \
--cc=j.sixt@viscovery$(echo .)net \
--cc=jrnieder@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox