Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix a harmless compiler warning. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
2ba5ddb9d925f0955f25aa78cc2063d3 |
| User & Date: | drh 2020-11-01 20:44:26.601 |
Context
|
2020-11-01
| ||
| 20:45 | More compiler warning fixes. check-in: 4c91a91124 user: drh tags: trunk | |
| 20:44 | Fix a harmless compiler warning. check-in: 2ba5ddb9d9 user: drh tags: trunk | |
| 20:37 | Factor out the logic that tries to deduce an appropriate repository name from a remote URL and put it in the url_to_repo_basename() routine of url.c. check-in: f978fcdce1 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
3497 3498 3499 3500 3501 3502 3503 |
fossil_fatal("there is already an open tree at %s", g.zLocalRoot);
}
/* If REPOSITORY looks like a URI, then try to clone it first */
if( isUri ){
char *zNewBase; /* Base name of the cloned repository file */
const char *zUri; /* URI to clone */
| < | 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 |
fossil_fatal("there is already an open tree at %s", g.zLocalRoot);
}
/* If REPOSITORY looks like a URI, then try to clone it first */
if( isUri ){
char *zNewBase; /* Base name of the cloned repository file */
const char *zUri; /* URI to clone */
int rc; /* Result code from fossil_system() */
Blob cmd; /* Clone command to be run */
char *zCmd; /* String version of the clone command */
zUri = zRepo;
zNewBase = url_to_repo_basename(zUri);
if( zNewBase==0 ){
|
| ︙ | ︙ |