git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Stefan Beller <sbeller@google.com>
To: Lars Schneider <larsxschneider@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
	"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: What's cooking in git.git (Aug 2016, #03; Mon, 8)
Date: Wed, 10 Aug 2016 10:36:55 -0700	[thread overview]
Message-ID: <CAGZ79kai3V=pVMOsas6P9wSCyF=BXwVf2Piuci9CNt5BN=K7Wg@mail.gmail.com> (raw)
In-Reply-To: <A6131C47-3230-4EC4-B3F6-B2507C937A22@gmail.com>

On Wed, Aug 10, 2016 at 10:30 AM, Lars Schneider
<larsxschneider@gmail.com> wrote:
>
>>
>> * sb/submodule-update-dot-branch (2016-08-03) 7 commits
>>  (merged to 'next' on 2016-08-04 at 47bff41)
>> + submodule update: allow '.' for branch value
>> + submodule--helper: add remote-branch helper
>> + submodule-config: keep configured branch around
>> + submodule--helper: fix usage string for relative-path
>> + submodule update: narrow scope of local variable
>> + submodule update: respect depth in subsequent fetches
>> + t7406: future proof tests with hard coded depth
>>
>> A few updates to "git submodule update".
>>
>> Will merge to 'master'.
>
> I think "t7406: future proof tests with hard coded depth"
> breaks the tests on OSX:
>
> https://travis-ci.org/git/git/jobs/150779244
>
> Cheers,
> Lars
>


error: pathspec '4' did not match any file(s) known to git.

not ok 46 - submodule update clone shallow submodule

#
# test_when_finished "rm -rf super3" &&
# first=$(git -C cloned submodule status submodule |cut -c2-41) &&
# second=$(git -C submodule rev-parse HEAD) &&
# commit_count=$(git -C submodule rev-list $first^..$second | wc -l) &&
# git clone cloned super3 &&
# pwd=$(pwd) &&
# (
# cd super3 &&
# sed -e "s#url = ../#url = file://$pwd/#" <.gitmodules >.gitmodules.tmp &&
# mv -f .gitmodules.tmp .gitmodules &&
# git submodule update --init --depth=$commit_count &&
# test 1 = $(git -C submodule log --oneline | wc -l)
# )
#


Is it possible that the "wc -l" produces  SP <NUMBER> on OSX,
such that the

# git submodule update --init --depth=$commit_count

contains "--depth= 4" which means empty depth and 4 as the pathspec
for the update command?

  reply	other threads:[~2016-08-10 18:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-08 22:32 What's cooking in git.git (Aug 2016, #03; Mon, 8) Junio C Hamano
2016-08-08 23:02 ` Stefan Beller
2016-08-09 15:43   ` Junio C Hamano
2016-08-09 18:52 ` Elijah Newren
2016-08-09 19:03   ` Junio C Hamano
2016-08-10 12:13   ` Johannes Schindelin
2016-08-10 17:30 ` Lars Schneider
2016-08-10 17:36   ` Stefan Beller [this message]
2016-08-10 17:46     ` Lars Schneider
2016-08-10 17:49   ` Junio C Hamano
2016-08-10 17:56   ` [PATCH] t7406: fix breakage on OSX Stefan Beller
2016-08-10 18:27     ` Junio C Hamano
2016-08-10 19:03       ` Stefan Beller
2016-08-10 20:34         ` Junio C Hamano
2016-08-10 19:03     ` Lars Schneider

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGZ79kai3V=pVMOsas6P9wSCyF=BXwVf2Piuci9CNt5BN=K7Wg@mail.gmail.com' \
    --to=sbeller@google.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=larsxschneider@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).