Fossil SCM
When a server lists links to other repositories in answer to pragma req-links, give only gitpush addresses that are http or https URLs, as for syncwith and syncfrom. An address such as git@host:path was parsed as a file name and ended the reply with an unknown-repository error.
Commit
98b3217800856da46d11a11f8ef5a89611da52375a40be38846b3fb66090b298
Parent
d9a37eed9536b48…
1 file changed
+1
-1
+1
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2027,11 +2027,11 @@ | ||
| 2027 | 2027 | " UNION ALL\n" |
| 2028 | 2028 | " SELECT mtime, substr(name,10), '{}' FROM config\n" |
| 2029 | 2029 | " WHERE name GLOB 'syncfrom:http*'\n" |
| 2030 | 2030 | " UNION ALL\n" |
| 2031 | 2031 | " SELECT mtime, substr(name,9), '{\"type\":\"git\"}' FROM config\n" |
| 2032 | - " WHERE name GLOB 'gitpush:*'\n" | |
| 2032 | + " WHERE name GLOB 'gitpush:http*'\n" | |
| 2033 | 2033 | ")\n" |
| 2034 | 2034 | "SELECT url, json_insert(arg,'$.src',%Q), max(mtime)\n" |
| 2035 | 2035 | " FROM remote WHERE mtime>unixepoch('now','-1 month')\n" |
| 2036 | 2036 | " GROUP BY url;", |
| 2037 | 2037 | g.zBaseURL |
| 2038 | 2038 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2027,11 +2027,11 @@ | |
| 2027 | " UNION ALL\n" |
| 2028 | " SELECT mtime, substr(name,10), '{}' FROM config\n" |
| 2029 | " WHERE name GLOB 'syncfrom:http*'\n" |
| 2030 | " UNION ALL\n" |
| 2031 | " SELECT mtime, substr(name,9), '{\"type\":\"git\"}' FROM config\n" |
| 2032 | " WHERE name GLOB 'gitpush:*'\n" |
| 2033 | ")\n" |
| 2034 | "SELECT url, json_insert(arg,'$.src',%Q), max(mtime)\n" |
| 2035 | " FROM remote WHERE mtime>unixepoch('now','-1 month')\n" |
| 2036 | " GROUP BY url;", |
| 2037 | g.zBaseURL |
| 2038 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2027,11 +2027,11 @@ | |
| 2027 | " UNION ALL\n" |
| 2028 | " SELECT mtime, substr(name,10), '{}' FROM config\n" |
| 2029 | " WHERE name GLOB 'syncfrom:http*'\n" |
| 2030 | " UNION ALL\n" |
| 2031 | " SELECT mtime, substr(name,9), '{\"type\":\"git\"}' FROM config\n" |
| 2032 | " WHERE name GLOB 'gitpush:http*'\n" |
| 2033 | ")\n" |
| 2034 | "SELECT url, json_insert(arg,'$.src',%Q), max(mtime)\n" |
| 2035 | " FROM remote WHERE mtime>unixepoch('now','-1 month')\n" |
| 2036 | " GROUP BY url;", |
| 2037 | g.zBaseURL |
| 2038 |