Fossil SCM
Make the "clearsign" PGP signing default to off.
Commit
28987096acb2fd6a88b9869ec9f07477b1af6ce0
Parent
847ae1fe0f8cf85…
3 files changed
+1
-1
+2
-2
+1
-1
+1
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -539,11 +539,11 @@ | ||
| 539 | 539 | } |
| 540 | 540 | zDateOvrd = find_option("date-override",0,1); |
| 541 | 541 | zUserOvrd = find_option("user-override",0,1); |
| 542 | 542 | db_must_be_within_tree(); |
| 543 | 543 | noSign = db_get_boolean("omitsign", 0)|noSign; |
| 544 | - if( db_get_boolean("clearsign", 1)==0 ){ noSign = 1; } | |
| 544 | + if( db_get_boolean("clearsign", 0)==0 ){ noSign = 1; } | |
| 545 | 545 | verify_all_options(); |
| 546 | 546 | |
| 547 | 547 | /* Get the ID of the parent manifest artifact */ |
| 548 | 548 | vid = db_lget_int("checkout", 0); |
| 549 | 549 | if( content_is_private(vid) ){ |
| 550 | 550 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -539,11 +539,11 @@ | |
| 539 | } |
| 540 | zDateOvrd = find_option("date-override",0,1); |
| 541 | zUserOvrd = find_option("user-override",0,1); |
| 542 | db_must_be_within_tree(); |
| 543 | noSign = db_get_boolean("omitsign", 0)|noSign; |
| 544 | if( db_get_boolean("clearsign", 1)==0 ){ noSign = 1; } |
| 545 | verify_all_options(); |
| 546 | |
| 547 | /* Get the ID of the parent manifest artifact */ |
| 548 | vid = db_lget_int("checkout", 0); |
| 549 | if( content_is_private(vid) ){ |
| 550 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -539,11 +539,11 @@ | |
| 539 | } |
| 540 | zDateOvrd = find_option("date-override",0,1); |
| 541 | zUserOvrd = find_option("user-override",0,1); |
| 542 | db_must_be_within_tree(); |
| 543 | noSign = db_get_boolean("omitsign", 0)|noSign; |
| 544 | if( db_get_boolean("clearsign", 0)==0 ){ noSign = 1; } |
| 545 | verify_all_options(); |
| 546 | |
| 547 | /* Get the ID of the parent manifest artifact */ |
| 548 | vid = db_lget_int("checkout", 0); |
| 549 | if( content_is_private(vid) ){ |
| 550 |
M
src/db.c
+2
-2
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1416,12 +1416,12 @@ | ||
| 1416 | 1416 | ** autosync If enabled, automatically pull prior to commit |
| 1417 | 1417 | ** or update and automatically push after commit or |
| 1418 | 1418 | ** tag or branch creation. If the the value is "pullonly" |
| 1419 | 1419 | ** then only pull operations occur automatically. |
| 1420 | 1420 | ** |
| 1421 | -** clearsign When enabled (the default), fossil will attempt to | |
| 1422 | -** sign all commits with gpg. When disabled, commits will | |
| 1421 | +** clearsign When enabled, fossil will attempt to sign all commits | |
| 1422 | +** with gpg. When disabled (the default), commits will | |
| 1423 | 1423 | ** be unsigned. |
| 1424 | 1424 | ** |
| 1425 | 1425 | ** diff-command External command to run when performing a diff. |
| 1426 | 1426 | ** If undefined, the internal text diff will be used. |
| 1427 | 1427 | ** |
| 1428 | 1428 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1416,12 +1416,12 @@ | |
| 1416 | ** autosync If enabled, automatically pull prior to commit |
| 1417 | ** or update and automatically push after commit or |
| 1418 | ** tag or branch creation. If the the value is "pullonly" |
| 1419 | ** then only pull operations occur automatically. |
| 1420 | ** |
| 1421 | ** clearsign When enabled (the default), fossil will attempt to |
| 1422 | ** sign all commits with gpg. When disabled, commits will |
| 1423 | ** be unsigned. |
| 1424 | ** |
| 1425 | ** diff-command External command to run when performing a diff. |
| 1426 | ** If undefined, the internal text diff will be used. |
| 1427 | ** |
| 1428 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1416,12 +1416,12 @@ | |
| 1416 | ** autosync If enabled, automatically pull prior to commit |
| 1417 | ** or update and automatically push after commit or |
| 1418 | ** tag or branch creation. If the the value is "pullonly" |
| 1419 | ** then only pull operations occur automatically. |
| 1420 | ** |
| 1421 | ** clearsign When enabled, fossil will attempt to sign all commits |
| 1422 | ** with gpg. When disabled (the default), commits will |
| 1423 | ** be unsigned. |
| 1424 | ** |
| 1425 | ** diff-command External command to run when performing a diff. |
| 1426 | ** If undefined, the internal text diff will be used. |
| 1427 | ** |
| 1428 |
+1
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -834,11 +834,11 @@ | ||
| 834 | 834 | @ probably secure enough and it is certainly more convenient for |
| 835 | 835 | @ anonymous users.</p> |
| 836 | 836 | |
| 837 | 837 | @ <hr> |
| 838 | 838 | onoff_attribute("Sign all commits with GPG", |
| 839 | - "clearsign", "clearsign", 1); | |
| 839 | + "clearsign", "clearsign", 0); | |
| 840 | 840 | @ <p>When enabled (the default), fossil will attempt to |
| 841 | 841 | @ sign all commits with GPG. When disabled, commits will |
| 842 | 842 | @ be unsigned.</p> |
| 843 | 843 | |
| 844 | 844 | @ <hr> |
| 845 | 845 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -834,11 +834,11 @@ | |
| 834 | @ probably secure enough and it is certainly more convenient for |
| 835 | @ anonymous users.</p> |
| 836 | |
| 837 | @ <hr> |
| 838 | onoff_attribute("Sign all commits with GPG", |
| 839 | "clearsign", "clearsign", 1); |
| 840 | @ <p>When enabled (the default), fossil will attempt to |
| 841 | @ sign all commits with GPG. When disabled, commits will |
| 842 | @ be unsigned.</p> |
| 843 | |
| 844 | @ <hr> |
| 845 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -834,11 +834,11 @@ | |
| 834 | @ probably secure enough and it is certainly more convenient for |
| 835 | @ anonymous users.</p> |
| 836 | |
| 837 | @ <hr> |
| 838 | onoff_attribute("Sign all commits with GPG", |
| 839 | "clearsign", "clearsign", 0); |
| 840 | @ <p>When enabled (the default), fossil will attempt to |
| 841 | @ sign all commits with GPG. When disabled, commits will |
| 842 | @ be unsigned.</p> |
| 843 | |
| 844 | @ <hr> |
| 845 |