From 14cef2bb3e0de02f306fa37c268d6c276326c002 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 26 Jul 2008 14:46:05 +0200 Subject: Avoid stripping newlines in blob data. (cherry picked from commit ccca12ee26e40fb4c4df2d77154ed496144569b9) --- lib/git/blob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/blob.py') diff --git a/lib/git/blob.py b/lib/git/blob.py index a6768afb..fd83fe1d 100644 --- a/lib/git/blob.py +++ b/lib/git/blob.py @@ -57,7 +57,7 @@ class Blob(object): Returns str """ - self.data_stored = self.data_stored or self.repo.git.cat_file(self.id, **{'p': True}) + self.data_stored = self.data_stored or self.repo.git.cat_file(self.id, **{'p': True, 'with_raw_output': True}) return self.data_stored @property -- cgit v1.2.1