convert: split start_multi_file_filter() into two separate functions
[gitweb.git] / t / t1500-rev-parse.sh
index 9ed8b8ccba5db702eaf7b872bd4a1e1af1fd2192..03d3c7f6d65b46bf977adf76a6d68582206768c2 100755 (executable)
@@ -116,4 +116,18 @@ test_expect_success 'git-path inside sub-dir' '
        test_cmp expect actual
 '
 
+test_expect_success 'showing the superproject correctly' '
+       git rev-parse --show-superproject-working-tree >out &&
+       test_must_be_empty out &&
+
+       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
+'
+
 test_done