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.

drh 2008-11-27 22:58 trunk
Commit 80406199683aebf6a2fe7f539dabc907f15bac54
1 file changed +2
+2
--- src/shun.c
+++ src/shun.c
@@ -54,10 +54,12 @@
5454
login_check_credentials();
5555
if( !g.okAdmin ){
5656
login_needed();
5757
}
5858
if( P("rebuild") ){
59
+ db_close();
60
+ db_open_repository(g.zRepositoryName);
5961
db_begin_transaction();
6062
rebuild_db(0,0);
6163
db_end_transaction(0);
6264
}
6365
if( zUuid ){
6466
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button