diff options
author | 2013-06-18 14:58:38 -0400 | |
---|---|---|
committer | 2013-06-18 15:08:51 -0400 | |
commit | 6cee6c3d77e0f4389f0ccff13496cfd3bd05cc8c (patch) | |
tree | c6f5b36cb2ce6a963a220436ee1176b1cbc53d23 | |
parent | 00c42cd6d2e9080f740248b37604e85b8dd2964d (diff) |
avoid newline translation when writing to git hash-object
They're like mushrooms, just keep popping up.
-rw-r--r-- | Git/Command.hs | 6 | ||||
-rw-r--r-- | debian/changelog | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Git/Command.hs b/Git/Command.hs index 648da985b..2d68540e6 100644 --- a/Git/Command.hs +++ b/Git/Command.hs @@ -78,7 +78,11 @@ pipeReadStrict params repo = assertLocal repo $ pipeWriteRead :: [CommandParam] -> String -> Repo -> IO String pipeWriteRead params s repo = assertLocal repo $ writeReadProcessEnv "git" (toCommand $ gitCommandLine params repo) - (gitEnv repo) s (Just fileEncoding) + (gitEnv repo) s (Just adjusthandle) + where + adjusthandle h = do + fileEncoding h + hSetNewlineMode h noNewlineTranslation {- Runs a git command, feeding it input on a handle with an action. -} pipeWrite :: [CommandParam] -> Repo -> (Handle -> IO ()) -> IO () diff --git a/debian/changelog b/debian/changelog index a31d5c457..bf3f0c65b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,8 @@ git-annex (4.20130602) UNRELEASED; urgency=low * annex.debug can now be set to enable debug logging by default. The webapp's debugging check box does this. * fsck: Avoid getting confused by Windows path separators + * Windows: Multiple bug fixes, including fixing the data written to the + git-annex branch. -- Joey Hess <joeyh@debian.org> Mon, 10 Jun 2013 12:52:44 -0400 |