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
This commit is contained in:
parent
a8d539189e
commit
303a82f33a
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue