1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

better shutdown handling

This commit is contained in:
2016-06-13 23:10:52 +02:00
parent ab13e51237
commit ec8e597425
3 changed files with 34 additions and 19 deletions

View File

@@ -41,7 +41,8 @@ class Repo:
def popen_cmd(self, *args, env=None, universal_newlines=True):
return Popen(args, stdout=PIPE, stderr=PIPE, cwd=self.repo_dir, env=env,
universal_newlines=universal_newlines)
universal_newlines=universal_newlines,
start_new_session=True)
def is_bare(self):
result = self.rev_parse("--is-bare-repository")