Skip to content

Commit

Permalink
Swtiched to os.path.join()
Browse files Browse the repository at this point in the history
Signed-off-by: Ole Herman Schumacher Elgesem <[email protected]>
  • Loading branch information
olehermanse committed Feb 2, 2022
1 parent effe235 commit bdccd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfbs/internal_file_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _get_git_repo_commit_sha(repo_path):

def _clone_and_checkout(url, path, commit):
# NOTE: If any of these shell (git) commands fail, we will exit
if not os.path.exists(path + "/.git"):
if not os.path.exists(os.path.join(path, ".git")):
sh("git clone --no-checkout %s %s" % (url, path))
sh("git checkout " + commit, directory=path)

Expand Down

0 comments on commit bdccd2d

Please sign in to comment.