xref: /freebsd/contrib/libdiff/test/expect016.diff (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1*59c8e88eSDag-Erling Smørgrav--- test016.left.txt
2*59c8e88eSDag-Erling Smørgrav+++ test016.right.txt
3*59c8e88eSDag-Erling Smørgrav@@ -254,7 +254,7 @@
4*59c8e88eSDag-Erling Smørgrav 	const char *uri, *dirname;
5*59c8e88eSDag-Erling Smørgrav 	char *proto, *host, *port, *repo_name, *server_path;
6*59c8e88eSDag-Erling Smørgrav 	char *default_destdir = NULL, *id_str = NULL;
7*59c8e88eSDag-Erling Smørgrav-	const char *repo_path;
8*59c8e88eSDag-Erling Smørgrav+	const char *repo_path, *remote_repo_path;
9*59c8e88eSDag-Erling Smørgrav 	struct got_repository *repo = NULL;
10*59c8e88eSDag-Erling Smørgrav 	struct got_pathlist_head refs, symrefs, wanted_branches, wanted_refs;
11*59c8e88eSDag-Erling Smørgrav 	struct got_pathlist_entry *pe;
12*59c8e88eSDag-Erling Smørgrav@@ -275,6 +275,9 @@
13*59c8e88eSDag-Erling Smørgrav 		goto done;
14*59c8e88eSDag-Erling Smørgrav 	}
15*59c8e88eSDag-Erling Smørgrav 	got_path_strip_trailing_slashes(server_path);
16*59c8e88eSDag-Erling Smørgrav+	remote_repo_path = server_path;
17*59c8e88eSDag-Erling Smørgrav+	while (remote_repo_path[0] == '/')
18*59c8e88eSDag-Erling Smørgrav+		remote_repo_path++;
19*59c8e88eSDag-Erling Smørgrav 	if (asprintf(&gotconfig,
20*59c8e88eSDag-Erling Smørgrav 	    "remote \"%s\" {\n"
21*59c8e88eSDag-Erling Smørgrav 	    "\tserver %s\n"
22*59c8e88eSDag-Erling Smørgrav@@ -285,7 +288,7 @@
23*59c8e88eSDag-Erling Smørgrav 	    "}\n",
24*59c8e88eSDag-Erling Smørgrav 	    GOT_FETCH_DEFAULT_REMOTE_NAME, host, proto,
25*59c8e88eSDag-Erling Smørgrav 	    port ? "\tport " : "", port ? port : "", port ? "\n" : "",
26*59c8e88eSDag-Erling Smørgrav-	    server_path,
27*59c8e88eSDag-Erling Smørgrav+	    remote_repo_path,
28*59c8e88eSDag-Erling Smørgrav 	    mirror_references ? "\tmirror-references yes\n" : "") == -1) {
29*59c8e88eSDag-Erling Smørgrav 		error = got_error_from_errno("asprintf");
30*59c8e88eSDag-Erling Smørgrav 		goto done;
31