Commit 9a9fe67a authored by Michal Čihař's avatar Michal Čihař

Merge branch 'master' into bootstrap

parents 80d64d0a bf1f5e93
......@@ -14,7 +14,7 @@ Django (>= 1.6)
https://www.djangoproject.com/
Translate-toolkit (>= 1.9.0, 1.10.0 or newer strongly recommended)
http://toolkit.translatehouse.org/
Git (>= 1.7.2)
Git (>= 1.6)
http://git-scm.com/
python-social-auth (>= 0.1.17, < 0.1.24)
http://psa.matiasaguirre.net/
......
......@@ -135,7 +135,7 @@ def get_versions():
'Git',
'http://git-scm.com/',
GitRepository.get_version(),
'1.7.2',
'1.6',
))
name = 'South'
......
......@@ -302,10 +302,10 @@ class GitRepository(Repository):
Returns dictionary with detailed revision information.
"""
text = self.execute([
'show',
'log',
'-1',
'--format=fuller',
'--date=rfc',
'--no-patch',
'--abbrev-commit',
revision
])
......@@ -439,14 +439,11 @@ class GitRepository(Repository):
self.execute(['remote', 'set-url', 'origin', '--push', push_url])
# Set branch to track
try:
self.execute(
['remote', 'set-branches', 'origin', branch]
)
except RepositoryException:
self.execute(
['remote', 'set-branches', '--add', 'origin', branch]
)
self.execute([
'config',
'remote.origin.fetch',
'+refs/heads/{0}:refs/remotes/origin/{0}'.format(branch)
])
def configure_branch(self, branch):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment