| | @@ -698,11 +698,15 @@ |
| 698 | 698 | if( !db_is_global("autosync") ) db_set_int("autosync", 1, 0); |
| 699 | 699 | if( !db_is_global("safemerge") ) db_set_int("safemerge", 0, 0); |
| 700 | 700 | if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0); |
| 701 | 701 | zUser = db_get("default-user", 0); |
| 702 | 702 | if( zUser==0 ){ |
| 703 | +#ifdef __MINGW32__ |
| 704 | + zUser = getenv("USERNAME"); |
| 705 | +#else |
| 703 | 706 | zUser = getenv("USER"); |
| 707 | +#endif |
| 704 | 708 | } |
| 705 | 709 | if( zUser==0 ){ |
| 706 | 710 | zUser = "root"; |
| 707 | 711 | } |
| 708 | 712 | db_multi_exec( |
| | @@ -972,21 +976,21 @@ |
| 972 | 976 | ** |
| 973 | 977 | ** autosync If enabled, automatically pull prior to |
| 974 | 978 | ** commit or update and automatically push |
| 975 | 979 | ** after commit or tag or branch creation. |
| 976 | 980 | ** |
| 977 | | -** clear-sign Command used to clear-sign manifests at check-in. |
| 981 | +** clearsign Command used to clear-sign manifests at check-in. |
| 978 | 982 | ** The default is "gpg --clearsign -o ". |
| 979 | 983 | ** |
| 980 | 984 | ** editor Text editor command used for check-in comments. |
| 981 | 985 | ** |
| 982 | 986 | ** localauth If enabled, require that HTTP connections from |
| 983 | 987 | ** 127.0.0.1 be authenticated by password. If |
| 984 | 988 | ** false, all HTTP requests from localhost have |
| 985 | 989 | ** unrestricted access to the repository. |
| 986 | 990 | ** |
| 987 | | -** omit-sign When enabled, fossil will not attempt to sign any |
| 991 | +** omitsign When enabled, fossil will not attempt to sign any |
| 988 | 992 | ** commit with gpg. All commits will be unsigned. |
| 989 | 993 | ** |
| 990 | 994 | ** safemerge If enabled, when commit will cause a fork, the |
| 991 | 995 | ** commit will not abort with warning. Also update |
| 992 | 996 | ** will not be allowed if local changes exist. |
| | @@ -995,11 +999,11 @@ |
| 995 | 999 | static const char *azName[] = { |
| 996 | 1000 | "autosync", |
| 997 | 1001 | "clearsign", |
| 998 | 1002 | "editor", |
| 999 | 1003 | "localauth", |
| 1000 | | - "omitsig", |
| 1004 | + "omitsign", |
| 1001 | 1005 | "safemerge", |
| 1002 | 1006 | }; |
| 1003 | 1007 | int i; |
| 1004 | 1008 | int globalFlag = find_option("global","g",0)!=0; |
| 1005 | 1009 | db_find_and_open_repository(); |
| 1006 | 1010 | |