Permalink
Browse files

Set fullPath from string if ICU failed.

  • Loading branch information...
1 parent adee1f6 commit ba4dc68f726989f632e360ab98aee89ec789eb9f @limansky limansky committed Apr 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/scala/code/model/RepositoryDoc.scala
@@ -122,7 +122,7 @@ class RepositoryDoc private() extends MongoRecord[RepositoryDoc] with ObjectIdPk
val list = new ArrayBuffer[SourceElement](50)
while (walk.next) {
- val fullPath = (guessString(Some(walk.getRawPath)) getOrElse "").split("/").toList
+ val fullPath = (guessString(Some(walk.getRawPath)) getOrElse walk.getPathString()).split("/").toList
list +=
(if (walk.getFileMode(level) == FileMode.TREE)

0 comments on commit ba4dc68

Please sign in to comment.