Skip to content
Snippets Groups Projects
Unverified Commit eec66740 authored by Vincent Hanquez's avatar Vincent Hanquez Committed by GitHub
Browse files

Merge pull request #13 from kim/list-refs-loop

Fix listRefs
parents 8564cc2c 37d3d8ce
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