[Notes] [Git][BuildStream/buildstream][master] 2 commits: testutils/site.py: Support parsing more exotic git versions



Title: GitLab

Chandan Singh pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • tests/testutils/site.py
    ... ... @@ -18,7 +18,7 @@ try:
    18 18
         utils.get_host_tool('git')
    
    19 19
         HAVE_GIT = True
    
    20 20
         out = str(subprocess.check_output(['git', '--version']), "utf-8")
    
    21
    -    version = tuple(int(x) for x in out.split(' ', 2)[2].split('.'))
    
    21
    +    version = tuple(int(x) for x in out.split(' ')[2].split('.'))
    
    22 22
         HAVE_OLD_GIT = version < (1, 8, 5)
    
    23 23
     except ProgramNotFoundError:
    
    24 24
         HAVE_GIT = False
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]