Thread (1 message) 1 message, 1 author, 2017-03-08

Re: [PATCHv4] rev-parse: add --show-superproject-working-tree

From: Junio C Hamano <hidden>
Date: 2017-03-08 23:52:33

Stefan Beller [off-list ref] 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.
+	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
+'
+
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help