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.

dmestas 2026-11-20 18:33 UTC small-fixes
Commit 98b3217800856da46d11a11f8ef5a89611da52375a40be38846b3fb66090b298
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -2027,11 +2027,11 @@
20272027
" UNION ALL\n"
20282028
" SELECT mtime, substr(name,10), '{}' FROM config\n"
20292029
" WHERE name GLOB 'syncfrom:http*'\n"
20302030
" UNION ALL\n"
20312031
" SELECT mtime, substr(name,9), '{\"type\":\"git\"}' FROM config\n"
2032
- " WHERE name GLOB 'gitpush:*'\n"
2032
+ " WHERE name GLOB 'gitpush:http*'\n"
20332033
")\n"
20342034
"SELECT url, json_insert(arg,'$.src',%Q), max(mtime)\n"
20352035
" FROM remote WHERE mtime>unixepoch('now','-1 month')\n"
20362036
" GROUP BY url;",
20372037
g.zBaseURL
20382038
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button