Fossil SCM
Zero return code on a "fossil commit --dry-run". Per [forum:/forumpost/74dfbfaf3e|request] on the forum.
Commit
661bd949203c8922fa5c4c573e5547dddbdef1c2bcd9cbd11e3dc3206b77428f
Parent
5d8e5eeba5701bb…
1 file changed
+1
-1
+1
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -2804,11 +2804,11 @@ | ||
| 2804 | 2804 | db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'"); |
| 2805 | 2805 | db_multi_exec("PRAGMA repository.application_id=252006673;"); |
| 2806 | 2806 | db_multi_exec("PRAGMA localdb.application_id=252006674;"); |
| 2807 | 2807 | if( dryRunFlag ){ |
| 2808 | 2808 | db_end_transaction(1); |
| 2809 | - exit(1); | |
| 2809 | + return; | |
| 2810 | 2810 | } |
| 2811 | 2811 | db_end_transaction(0); |
| 2812 | 2812 | |
| 2813 | 2813 | if( outputManifest & MFESTFLG_TAGS ){ |
| 2814 | 2814 | Blob tagslist; |
| 2815 | 2815 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2804,11 +2804,11 @@ | |
| 2804 | db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'"); |
| 2805 | db_multi_exec("PRAGMA repository.application_id=252006673;"); |
| 2806 | db_multi_exec("PRAGMA localdb.application_id=252006674;"); |
| 2807 | if( dryRunFlag ){ |
| 2808 | db_end_transaction(1); |
| 2809 | exit(1); |
| 2810 | } |
| 2811 | db_end_transaction(0); |
| 2812 | |
| 2813 | if( outputManifest & MFESTFLG_TAGS ){ |
| 2814 | Blob tagslist; |
| 2815 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2804,11 +2804,11 @@ | |
| 2804 | db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'"); |
| 2805 | db_multi_exec("PRAGMA repository.application_id=252006673;"); |
| 2806 | db_multi_exec("PRAGMA localdb.application_id=252006674;"); |
| 2807 | if( dryRunFlag ){ |
| 2808 | db_end_transaction(1); |
| 2809 | return; |
| 2810 | } |
| 2811 | db_end_transaction(0); |
| 2812 | |
| 2813 | if( outputManifest & MFESTFLG_TAGS ){ |
| 2814 | Blob tagslist; |
| 2815 |