Re: [PATCHv4] rev-parse: add --show-superproject-working-tree
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 8, 2017, 23:51 UTC
- Message-ID
- <xmqqr327z5rn.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170308230742.5185-1-sbeller@google.com>
Stefan Beller <sbeller@google.com> writes:
> *this patch* > > * Documentation shamelessly stolen from Junio.
You stole it, and then ...
> +test_expect_success 'showing the superproject correctly' ' > + git rev-parse --show-superproject-working-tree >out && > + test_must_be_empty out &&
... made sure that the newly documented behaviour is tested as a feature. Good.
Show 10 quoted lines
> + test_create_repo super && > + test_commit -C super test_commit && > + test_create_repo sub && > + test_commit -C sub test_commit && > + git -C super submodule add ../sub dir/sub && > + echo $(pwd)/super >expect && > + git -C super/dir/sub rev-parse --show-superproject-working-tree >out && > + test_cmp expect out > +' > +