Fossil SCM

Match gitpush addresses for pragma link by their whole scheme, http:// or https://, so that an scp-style address whose user name begins with http is left out too.

dmestas 2026-11-20 18:38 UTC small-fixes
Commit 076b7694046c43a629b393c8026068328fd8deffd3c21ac0475dc048197e91f7
1 file changed +2 -1
+2 -1
--- src/xfer.c
+++ src/xfer.c
@@ -2027,11 +2027,12 @@
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:http*'\n"
2032
+ " WHERE name GLOB 'gitpush:http://*'\n"
2033
+ " OR name GLOB 'gitpush:https://*'\n"
20332034
")\n"
20342035
"SELECT url, json_insert(arg,'$.src',%Q), max(mtime)\n"
20352036
" FROM remote WHERE mtime>unixepoch('now','-1 month')\n"
20362037
" GROUP BY url;",
20372038
g.zBaseURL
20382039
--- src/xfer.c
+++ src/xfer.c
@@ -2027,11 +2027,12 @@
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
--- src/xfer.c
+++ src/xfer.c
@@ -2027,11 +2027,12 @@
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 " OR name GLOB 'gitpush:https://*'\n"
2034 ")\n"
2035 "SELECT url, json_insert(arg,'$.src',%Q), max(mtime)\n"
2036 " FROM remote WHERE mtime>unixepoch('now','-1 month')\n"
2037 " GROUP BY url;",
2038 g.zBaseURL
2039

Keyboard Shortcuts

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