Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | When the "fossil git export" command displays the "git push" command it is about to run, omit the display of any password that happens to be embedded in the URL. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
aaa937a8e14ec049e7b172aa32eff4df |
User & Date: | drh 2019-03-16 13:58:27.146 |
Context
2019-03-16
| ||
17:04 | Abandon an export to Git if a phantom artifact is encountered on any check-in that is less than one year old. This is a defense against generating an incorrect export from a repository that has an incomplete sync. Shunned artifacts are always ignored, regardless of age. ... (check-in: de0bbcb5 user: drh tags: trunk) | |
13:58 | When the "fossil git export" command displays the "git push" command it is about to run, omit the display of any password that happens to be embedded in the URL. ... (check-in: aaa937a8 user: drh tags: trunk) | |
13:31 | Fix a missing newline when printing the git push command on --autopush. ... (check-in: df619db6 user: drh tags: trunk) | |
Changes
Changes to src/export.c.
︙ | ︙ | |||
1390 1391 1392 1393 1394 1395 1396 | db_finalize(&q); } db_commit_transaction(); /* Optionally do a "git push" */ zPushUrl = db_text(0, "SELECT value FROM mconfig WHERE key='autopush'"); if( zPushUrl ){ | > > > | > > | 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 | db_finalize(&q); } db_commit_transaction(); /* Optionally do a "git push" */ zPushUrl = db_text(0, "SELECT value FROM mconfig WHERE key='autopush'"); if( zPushUrl ){ char *zPushCmd; UrlData url; url_parse_local(zPushUrl, 0, &url); zPushCmd = mprintf("git push --mirror %s", url.canonical); fossil_print("%s\n", zPushCmd); fossil_free(zPushCmd); zPushCmd = mprintf("git push --mirror %s", zPushUrl); fossil_system(zPushCmd); fossil_free(zPushCmd); } } /* ** COMMAND: git |
︙ | ︙ |