|
@@ -1258,7 +1258,7 @@ class Project(object):
|
|
|
if is_new:
|
|
if is_new:
|
|
|
alt = os.path.join(self.gitdir, 'objects/info/alternates')
|
|
alt = os.path.join(self.gitdir, 'objects/info/alternates')
|
|
|
try:
|
|
try:
|
|
|
- fd = open(alt, 'rb')
|
|
|
|
|
|
|
+ fd = open(alt)
|
|
|
try:
|
|
try:
|
|
|
alt_dir = fd.readline().rstrip()
|
|
alt_dir = fd.readline().rstrip()
|
|
|
finally:
|
|
finally:
|
|
@@ -2691,11 +2691,11 @@ class Project(object):
|
|
|
else:
|
|
else:
|
|
|
path = os.path.join(self._project.worktree, '.git', HEAD)
|
|
path = os.path.join(self._project.worktree, '.git', HEAD)
|
|
|
try:
|
|
try:
|
|
|
- fd = open(path, 'rb')
|
|
|
|
|
|
|
+ fd = open(path)
|
|
|
except IOError as e:
|
|
except IOError as e:
|
|
|
raise NoManifestException(path, str(e))
|
|
raise NoManifestException(path, str(e))
|
|
|
try:
|
|
try:
|
|
|
- line = fd.read()
|
|
|
|
|
|
|
+ line = fd.readline()
|
|
|
finally:
|
|
finally:
|
|
|
fd.close()
|
|
fd.close()
|
|
|
try:
|
|
try:
|