aboutsummaryrefslogtreecommitdiff
path: root/Git/CatFile.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-03-19 14:49:01 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-03-19 15:57:56 -0400
commit0bc0364c5cd75695bc66181cc3bd52a4d26c4c87 (patch)
tree56bce6cf12e7cfdc7c591d3b36f56221c5b5a2d1 /Git/CatFile.hs
parent3b0e263a342cf8a369fcea6b1e41e0533ba2cc7f (diff)
Windows: Fix some filename encoding bugs.
Diffstat (limited to 'Git/CatFile.hs')
-rw-r--r--Git/CatFile.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Git/CatFile.hs b/Git/CatFile.hs
index c7c51b894..8e64fc558 100644
--- a/Git/CatFile.hs
+++ b/Git/CatFile.hs
@@ -108,6 +108,6 @@ catTree h treeref = go <$> catObjectDetails h treeref
dropsha = L.drop 21
parsemodefile b =
- let (modestr, file) = separate (== ' ') (encodeW8 $ L.unpack b)
+ let (modestr, file) = separate (== ' ') (decodeBS b)
in (file, readmode modestr)
readmode = fst . fromMaybe (0, undefined) . headMaybe . readOct