Fossil SCM

Fix the page title for the /file method without a ci= query parameter.

drh 2020-11-12 11:54 trunk
Commit cf72fc18e74ac41c2a9f2878c86aef2994dd4a941988256e52b0d08a9761253f
1 file changed +1 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -2398,11 +2398,11 @@
23982398
}
23992399
24002400
if( isFile ){
24012401
if( isSymbolicCI ){
24022402
zHeader = mprintf("%s at %s", file_tail(zName), zCI);
2403
- }else if( zCI ){
2403
+ }else if( zCIUuid && zCIUuid[0] ){
24042404
zHeader = mprintf("%s at [%S]", file_tail(zName), zCIUuid);
24052405
}else{
24062406
zHeader = mprintf("%s", file_tail(zName));
24072407
}
24082408
}else if( descOnly ){
24092409
--- src/info.c
+++ src/info.c
@@ -2398,11 +2398,11 @@
2398 }
2399
2400 if( isFile ){
2401 if( isSymbolicCI ){
2402 zHeader = mprintf("%s at %s", file_tail(zName), zCI);
2403 }else if( zCI ){
2404 zHeader = mprintf("%s at [%S]", file_tail(zName), zCIUuid);
2405 }else{
2406 zHeader = mprintf("%s", file_tail(zName));
2407 }
2408 }else if( descOnly ){
2409
--- src/info.c
+++ src/info.c
@@ -2398,11 +2398,11 @@
2398 }
2399
2400 if( isFile ){
2401 if( isSymbolicCI ){
2402 zHeader = mprintf("%s at %s", file_tail(zName), zCI);
2403 }else if( zCIUuid && zCIUuid[0] ){
2404 zHeader = mprintf("%s at [%S]", file_tail(zName), zCIUuid);
2405 }else{
2406 zHeader = mprintf("%s", file_tail(zName));
2407 }
2408 }else if( descOnly ){
2409

Keyboard Shortcuts

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