Fossil SCM

Fix a bug in the sub-repository detection logic. Ticket [b733bba0b7319ef2].

drh 2011-05-06 13:13 trunk
Commit e56a4ec3ad16e337cdc68b27d73b48dbb275001f
1 file changed +2 -2
+2 -2
--- src/vfile.c
+++ src/vfile.c
@@ -301,15 +301,15 @@
301301
*/
302302
int vfile_top_of_checkout(const char *zPath){
303303
char *zFile;
304304
int fileFound = 0;
305305
306
- zFile = mprintf("%s/_FOSSIL_");
306
+ zFile = mprintf("%s/_FOSSIL_", zPath);
307307
fileFound = file_size(zFile)>=1024;
308308
fossil_free(zFile);
309309
if( !fileFound ){
310
- zFile = mprintf("%s/.fos");
310
+ zFile = mprintf("%s/.fos", zPath);
311311
fileFound = file_size(zFile)>=1024;
312312
fossil_free(zFile);
313313
}
314314
return fileFound;
315315
}
316316
--- src/vfile.c
+++ src/vfile.c
@@ -301,15 +301,15 @@
301 */
302 int vfile_top_of_checkout(const char *zPath){
303 char *zFile;
304 int fileFound = 0;
305
306 zFile = mprintf("%s/_FOSSIL_");
307 fileFound = file_size(zFile)>=1024;
308 fossil_free(zFile);
309 if( !fileFound ){
310 zFile = mprintf("%s/.fos");
311 fileFound = file_size(zFile)>=1024;
312 fossil_free(zFile);
313 }
314 return fileFound;
315 }
316
--- src/vfile.c
+++ src/vfile.c
@@ -301,15 +301,15 @@
301 */
302 int vfile_top_of_checkout(const char *zPath){
303 char *zFile;
304 int fileFound = 0;
305
306 zFile = mprintf("%s/_FOSSIL_", zPath);
307 fileFound = file_size(zFile)>=1024;
308 fossil_free(zFile);
309 if( !fileFound ){
310 zFile = mprintf("%s/.fos", zPath);
311 fileFound = file_size(zFile)>=1024;
312 fossil_free(zFile);
313 }
314 return fileFound;
315 }
316

Keyboard Shortcuts

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