parent
6fe83256b1
commit
8bbf4fc2bf
|
|
@ -47,10 +47,7 @@ class StackDisplayWorld(World):
|
||||||
with open(STACK_FN, 'wb') as f:
|
with open(STACK_FN, 'wb') as f:
|
||||||
os.chmod(STACK_FN, 0600)
|
os.chmod(STACK_FN, 0600)
|
||||||
pickle.dump(self.stack, f)
|
pickle.dump(self.stack, f)
|
||||||
f.flush()from dulwich.errors import NotGitRepository
|
f.flush()
|
||||||
from dulwich.repo import Repo
|
|
||||||
|
|
||||||
|
|
||||||
os.fsync(f.fileno())
|
os.fsync(f.fileno())
|
||||||
repo.stage([self.relative_STACK_FN])
|
repo.stage([self.relative_STACK_FN])
|
||||||
commit_id = repo.do_commit(
|
commit_id = repo.do_commit(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue