summaryrefslogtreecommitdiff
path: root/Git/LsTree.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Git/LsTree.hs')
-rw-r--r--Git/LsTree.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Git/LsTree.hs b/Git/LsTree.hs
index 611793c40..c61ae7fab 100644
--- a/Git/LsTree.hs
+++ b/Git/LsTree.hs
@@ -19,6 +19,7 @@ import System.Posix.Types
import Common
import Git
import Git.Command
+import Git.Sha
import qualified Git.Filename
data TreeItem = TreeItem
@@ -53,5 +54,5 @@ parseLsTree l = TreeItem
-- specific positions in the line.
(m, past_m) = splitAt 7 l
(t, past_t) = splitAt 4 past_m
- (s, past_s) = splitAt 40 $ Prelude.tail past_t
+ (s, past_s) = splitAt shaSize $ Prelude.tail past_t
f = Prelude.tail past_s