Fossil SCM
Prevent the resuming of a clone that does not have the product code.
Commit
63af8da3554e92363a86f1a5d60c9b8f36f208474e65e42b5ec79a9d18ccc914
Parent
d82079546dcfc94…
1 file changed
+1
+1
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -241,10 +241,11 @@ | ||
| 241 | 241 | if( nResumeSeqno>1 ){ |
| 242 | 242 | db_open_repository(zRepo); |
| 243 | 243 | db_open_config(0,0); |
| 244 | 244 | db_begin_transaction(); |
| 245 | 245 | zOldProjCode = db_get("project-code",0); |
| 246 | + if( zOldProjCode==0 ) fossil_fatal("project-id missing from repository"); | |
| 246 | 247 | fossil_print("Resuming clone of project-id %s\n",zOldProjCode); |
| 247 | 248 | db_create_default_users(1, zDefaultUser); |
| 248 | 249 | if( zDefaultUser ) g.zLogin = zDefaultUser; |
| 249 | 250 | user_select(); |
| 250 | 251 | }else{ |
| 251 | 252 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -241,10 +241,11 @@ | |
| 241 | if( nResumeSeqno>1 ){ |
| 242 | db_open_repository(zRepo); |
| 243 | db_open_config(0,0); |
| 244 | db_begin_transaction(); |
| 245 | zOldProjCode = db_get("project-code",0); |
| 246 | fossil_print("Resuming clone of project-id %s\n",zOldProjCode); |
| 247 | db_create_default_users(1, zDefaultUser); |
| 248 | if( zDefaultUser ) g.zLogin = zDefaultUser; |
| 249 | user_select(); |
| 250 | }else{ |
| 251 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -241,10 +241,11 @@ | |
| 241 | if( nResumeSeqno>1 ){ |
| 242 | db_open_repository(zRepo); |
| 243 | db_open_config(0,0); |
| 244 | db_begin_transaction(); |
| 245 | zOldProjCode = db_get("project-code",0); |
| 246 | if( zOldProjCode==0 ) fossil_fatal("project-id missing from repository"); |
| 247 | fossil_print("Resuming clone of project-id %s\n",zOldProjCode); |
| 248 | db_create_default_users(1, zDefaultUser); |
| 249 | if( zDefaultUser ) g.zLogin = zDefaultUser; |
| 250 | user_select(); |
| 251 | }else{ |
| 252 |