Show More
@@ -684,9 +684,12 b' def check_git_version():' | |||||
684 | from rhodecode import BACKENDS |
|
684 | from rhodecode import BACKENDS | |
685 |
|
685 | |||
686 | p = subprocess.Popen('git --version', shell=True, |
|
686 | p = subprocess.Popen('git --version', shell=True, | |
687 |
|
|
687 | stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
688 | stdout, stderr = p.communicate() |
|
688 | stdout, stderr = p.communicate() | |
689 | ver = (stdout.split(' ')[-1] or '').strip() or '0.0.0' |
|
689 | ver = (stdout.split(' ')[-1] or '').strip() or '0.0.0' | |
|
690 | if len(ver.split('.')) > 3: | |||
|
691 | #StrictVersion needs to be only 3 element type | |||
|
692 | ver = '.'.join(ver.split('.')[:3]) | |||
690 | try: |
|
693 | try: | |
691 | _ver = StrictVersion(ver) |
|
694 | _ver = StrictVersion(ver) | |
692 | except: |
|
695 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now