deploy.py fails with --repo option for a local relative directory
mdklatt opened this issue · 3 comments
mdklatt commented
Trying to deploy from the project directory fails, i.e. deploy.py --repo=.
.
deploy.py:83:
with tmpdir():
clone = "git clone {:s} {:s}".format(args.repo, _NAME)
check_call(split(clone))
mdklatt commented
Relative paths need to be resolved before changing the working directory to the tmp directory.
mdklatt commented
This works if args.repo
is a local file path, but if it's a Git URL it will be treated like a local path.
repo = abspath(args.repo)
with tmpdir():
clone = "git clone {:s} {:s}".format(repo, _NAME)
check_call(split(clone))