Skip to content
Permalink
Browse files

BF: pavlovia URL checking was only working on https URLs

They have this format:
  https://gitlab.pavlovia.org/NameSpace/Name.git
Should also be able to work with ssh format:
  git@gitlab.pavlovia.org:NameSpace/Name.git
  • Loading branch information...
peircej committed Jun 17, 2019
1 parent 3546e12 commit 08d793794f76ae8c79e6157ea5faa2c744785d47
Showing with 8 additions and 2 deletions.
  1. +8 −2 psychopy/projects/pavlovia.py
@@ -1064,8 +1064,14 @@ def getProject(filename):
proj = None
for remote in localRepo.remotes:
for url in remote.urls:
if "gitlab.pavlovia.org/" in url:
namespaceName = url.split('gitlab.pavlovia.org/')[1]
if "gitlab.pavlovia.org" in url:
# could be 'https://gitlab.pavlovia.org/NameSpace/Name.git'
# or may be 'git@gitlab.pavlovia.org:NameSpace/Name.git'
namespaceName = url.split('gitlab.pavlovia.org')[1]
# remove the first char (: or /)
if namespaceName[0] in ['/', ':']:
namespaceName = namespaceName[1:]
# remove the .git at the end if present
namespaceName = namespaceName.replace('.git', '')
pavSession = getCurrentSession()
if not pavSession.user:

0 comments on commit 08d7937

Please sign in to comment.
You can’t perform that action at this time.