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.
Commit
076b7694046c43a629b393c8026068328fd8deffd3c21ac0475dc048197e91f7
Parent
98b3217800856da…
1 file changed
+2
-1
+2
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2027,11 +2027,12 @@ | ||
| 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:http*'\n" | |
| 2032 | + " WHERE name GLOB 'gitpush:http://*'\n" | |
| 2033 | + " OR name GLOB 'gitpush:https://*'\n" | |
| 2033 | 2034 | ")\n" |
| 2034 | 2035 | "SELECT url, json_insert(arg,'$.src',%Q), max(mtime)\n" |
| 2035 | 2036 | " FROM remote WHERE mtime>unixepoch('now','-1 month')\n" |
| 2036 | 2037 | " GROUP BY url;", |
| 2037 | 2038 | g.zBaseURL |
| 2038 | 2039 |
| --- 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 |