sagemath / sage-patchbot

Sage Patchbot
https://www.sagemath.org
Other
8 stars 17 forks source link

unsafe tickets: change to SAGE_ROOT first before calling 'make build' #97

Open jakobkroeker opened 8 years ago

jakobkroeker commented 8 years ago

same in describe_branch:

change to SAGE_ROOT first:

 sdir = os.environ.get('SAGE_ROOT')
    if (sdir != None):
        os.chdir(sdir)
    res = subprocess.check_output(['git', 'describe', '--tags',
                                   '--match', '[0-9].[0-9]*', branch],
                                  universal_newlines=True)