Fix if the entry exists in pdc and not on disk and typo in an error message
This commit is contained in:
parent
5b81d69c5d
commit
d640cbbba0
1 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,10 @@ def _get_arguments():
|
|||
|
||||
def create_git_branch(path, gitbranch):
|
||||
""" Create the specified git branch in the specified git repository. """
|
||||
if not os.path.isdir(path):
|
||||
print(' ERROR: %s does not appear to be a directory' % path)
|
||||
return
|
||||
|
||||
cmd = ['git', 'branch', gitbranch, _branch_from]
|
||||
return subprocess.check_output(
|
||||
cmd, stderr=subprocess.STDOUT, shell=False, cwd=path)
|
||||
|
@ -70,7 +74,7 @@ def main():
|
|||
except subprocess.CalledProcessError as err:
|
||||
print(
|
||||
' ERROR: %s failed to branch, return code: %s\n %s' % (
|
||||
err.returncode, err.output))
|
||||
entry, err.returncode, err.output))
|
||||
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue