Fossil SCM
Fix the Setup->Shunned->Rebuild button so that it works when the "fossil ui" command is run from within a check-out and without specifying the repository filename.
Commit
80406199683aebf6a2fe7f539dabc907f15bac54
Parent
c12e5b102ee6079…
1 file changed
+2
+2
| --- src/shun.c | ||
| +++ src/shun.c | ||
| @@ -54,10 +54,12 @@ | ||
| 54 | 54 | login_check_credentials(); |
| 55 | 55 | if( !g.okAdmin ){ |
| 56 | 56 | login_needed(); |
| 57 | 57 | } |
| 58 | 58 | if( P("rebuild") ){ |
| 59 | + db_close(); | |
| 60 | + db_open_repository(g.zRepositoryName); | |
| 59 | 61 | db_begin_transaction(); |
| 60 | 62 | rebuild_db(0,0); |
| 61 | 63 | db_end_transaction(0); |
| 62 | 64 | } |
| 63 | 65 | if( zUuid ){ |
| 64 | 66 |
| --- src/shun.c | |
| +++ src/shun.c | |
| @@ -54,10 +54,12 @@ | |
| 54 | login_check_credentials(); |
| 55 | if( !g.okAdmin ){ |
| 56 | login_needed(); |
| 57 | } |
| 58 | if( P("rebuild") ){ |
| 59 | db_begin_transaction(); |
| 60 | rebuild_db(0,0); |
| 61 | db_end_transaction(0); |
| 62 | } |
| 63 | if( zUuid ){ |
| 64 |
| --- src/shun.c | |
| +++ src/shun.c | |
| @@ -54,10 +54,12 @@ | |
| 54 | login_check_credentials(); |
| 55 | if( !g.okAdmin ){ |
| 56 | login_needed(); |
| 57 | } |
| 58 | if( P("rebuild") ){ |
| 59 | db_close(); |
| 60 | db_open_repository(g.zRepositoryName); |
| 61 | db_begin_transaction(); |
| 62 | rebuild_db(0,0); |
| 63 | db_end_transaction(0); |
| 64 | } |
| 65 | if( zUuid ){ |
| 66 |