From 303a82f33a1360036b6f70864d3099f9d803f2c7 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Tue, 19 Aug 2014 22:57:17 +0530 Subject: Don't open non-binary files as binary * Don't pen the git config file, and the git ".lock" file as binary. Change-Id: I7b3939658456f2fd0a0500443cdd8d1ee1a4459d --- git_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git_config.py') diff --git a/git_config.py b/git_config.py index a667b3f8..aa07d1b7 100644 --- a/git_config.py +++ b/git_config.py @@ -697,7 +697,7 @@ class Branch(object): self._Set('merge', self.merge) else: - fd = open(self._config.file, 'ab') + fd = open(self._config.file, 'a') try: fd.write('[branch "%s"]\n' % self.name) if self.remote: -- cgit v1.2.3-54-g00ecf