##// END OF EJS Templates
fixed check git version function, git sometimes uses 4 element version numbering which breaks the system that function
marcink -
r2911:b14850a7 beta
parent child Browse files
Show More
@@ -684,9 +684,12 b' def check_git_version():'
684 684 from rhodecode import BACKENDS
685 685
686 686 p = subprocess.Popen('git --version', shell=True,
687 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
687 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
688 688 stdout, stderr = p.communicate()
689 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 693 try:
691 694 _ver = StrictVersion(ver)
692 695 except:
General Comments 0
You need to be logged in to leave comments. Login now