summaryrefslogtreecommitdiff
path: root/Git/UpdateIndex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-12 21:13:15 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-12 21:13:15 -0400
commitda62edb42af02ce34e9ea69edcd8ec2f30cdd625 (patch)
treef001c384056798363557aea62914d5bead850cd0 /Git/UpdateIndex.hs
parent7d458c40db7778f677c00cbc076d37b5e4abf60d (diff)
optimisation and memory leak fix
Diffstat (limited to 'Git/UpdateIndex.hs')
-rw-r--r--Git/UpdateIndex.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Git/UpdateIndex.hs b/Git/UpdateIndex.hs
index 31e8a45b2..abdc4bcbe 100644
--- a/Git/UpdateIndex.hs
+++ b/Git/UpdateIndex.hs
@@ -71,7 +71,7 @@ unstageFile file repo = do
{- A streamer that adds a symlink to the index. -}
stageSymlink :: FilePath -> Sha -> Repo -> IO Streamer
stageSymlink file sha repo = do
- line <- updateIndexLine
+ !line <- updateIndexLine
<$> pure sha
<*> pure SymlinkBlob
<*> toTopFilePath file repo