Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove slashes on branch name

  • Loading branch information...
commit 15639eb68f24eb70f4035fd412a6e0739860dc2f 1 parent af4570a
@parente authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  hbag/githubpull.py
View
2  hbag/githubpull.py
@@ -21,7 +21,7 @@ def post(self, branch):
url = repo['url'].replace('https', 'git')+'.git'
# get the name of the project
name = repo['name']
- branch = branch if branch else 'master'
+ branch = branch.strip('/') if branch else 'master'
projectsPath = self.options['projects_path']
clonePath = os.path.join(projectsPath, name)
Please sign in to comment.
Something went wrong with that request. Please try again.