[PATCH] t7406: fix breakage on OSX

2016-08-10 Thread Stefan Beller
On OSX `wc` prefixes the output of numbers with whitespace, such that the `commit_count` would be "SP ". When using that in git submodule update --init --depth=$commit_count the depth would be empty and the number is interpreted as the pathspec. Fix this by not using `wc` and rather instruct

Re: [PATCH] t7406: fix breakage on OSX

2016-08-10 Thread Junio C Hamano
Stefan Beller writes: > On Wed, Aug 10, 2016 at 11:27 AM, Junio C Hamano wrote: >> Stefan Beller writes: >> >>> On OSX `wc` prefixes the output of numbers with whitespace, such that >>> the `commit_count` would be "SP ". When using that in >>> >>> git submodule update --init --depth=$commit

Re: [PATCH] t7406: fix breakage on OSX

2016-08-10 Thread Lars Schneider
> On 10 Aug 2016, at 19:56, Stefan Beller wrote: > > On OSX `wc` prefixes the output of numbers with whitespace, such that > the `commit_count` would be "SP ". When using that in > >git submodule update --init --depth=$commit_count > > the depth would be empty and the number is interpreted

Re: [PATCH] t7406: fix breakage on OSX

2016-08-10 Thread Stefan Beller
On Wed, Aug 10, 2016 at 11:27 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> On OSX `wc` prefixes the output of numbers with whitespace, such that >> the `commit_count` would be "SP ". When using that in >> >> git submodule update --init --depth=$commit_count >> >> the depth would be

Re: [PATCH] t7406: fix breakage on OSX

2016-08-10 Thread Junio C Hamano
Stefan Beller writes: > On OSX `wc` prefixes the output of numbers with whitespace, such that > the `commit_count` would be "SP ". When using that in > > git submodule update --init --depth=$commit_count > > the depth would be empty and the number is interpreted as the pathspec. > Fix this by