Improving repository detection.

This commit is contained in:
ruidajo 2022-03-03 18:06:26 -05:00
parent 35788f5ca9
commit d7ce1331f4
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ TiddlyWiki >> detectRepository [
| folder folderItems |
folder := self file parent.
folderItems := folder children.
[(folderItems select: [ :path | path fullName endsWith: '.fossil' ]) isEmpty]
[(folderItems select: [ :path | path basename beginsWith: '.fossil' ]) isEmpty]
whileTrue: [folder := folder parent.
folderItems := folder children.].
^ folder