Skip to content
Snippets Groups Projects
Unverified Commit 37d3d8ce authored by Kim Altintop's avatar Kim Altintop
Browse files

Fix listRefs

Would loop indefinitely when passed a 'LocalPath' containing forward slashes.
parent 49423fd1
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ listRefs root = listRefsAcc [] root ...@@ -142,7 +142,7 @@ listRefs root = listRefsAcc [] root
getRefsRecursively dir acc (x:xs) = do getRefsRecursively dir acc (x:xs) = do
isDir <- isDirectory x isDir <- isDirectory x
extra <- if isDir extra <- if isDir
then listRefsAcc [] dir then listRefsAcc [] x
else let r = UTF8.toString $ localPathEncode $ stripRoot x else let r = UTF8.toString $ localPathEncode $ stripRoot x
in if isValidRefName r in if isValidRefName r
then return [fromString r] then return [fromString r]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment