Some logging on git operations
This commit is contained in:
parent
74afdf1f3a
commit
6727585666
@ -84,6 +84,7 @@ class SubProject(models.Model):
|
|||||||
if origin.url != self.repo:
|
if origin.url != self.repo:
|
||||||
repo.git.remote('set-url', 'origin', self.repo)
|
repo.git.remote('set-url', 'origin', self.repo)
|
||||||
# Update
|
# Update
|
||||||
|
logging.info('updating repo %s', self.__unicode__())
|
||||||
repo.git.remote('update', 'origin')
|
repo.git.remote('update', 'origin')
|
||||||
|
|
||||||
def configure_branch(self):
|
def configure_branch(self):
|
||||||
@ -108,6 +109,7 @@ class SubProject(models.Model):
|
|||||||
repo.git.merge('origin/%s' % self.branch)
|
repo.git.merge('origin/%s' % self.branch)
|
||||||
except:
|
except:
|
||||||
repo.git.merge('--abort')
|
repo.git.merge('--abort')
|
||||||
|
logging.warning('failed merge on repo %s', self.__unicode__())
|
||||||
|
|
||||||
def get_translation_blobs(self):
|
def get_translation_blobs(self):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user