We check out theme repos using a git HTTP url (git://) instead of git ssh url (git@). To make the version script work we need to generalize the regexp used to parse out the remotes. This was causing errors. To test I just tried this out in a REPL, see below: In [15]: for line in lines: print line ....: origingit@github.com:edx/edx-platform.git (fetch) origingit@github.com:edx/edx-platformrm.git (push) origingit://github.com/Stanford-Online/edx-theme.git (fetchtch) origingit://github.com/Stanford-Online/edx-theme.git (push) In [In16]: for line in lines: ....: if ' (fetch)' in line: ....: repo_url = re.search( ....: '(git@|git://)(.*) \(fetch\)', line).group(2).replace( ....: ':', '/') ....: print repo_url ....: github.com/edx/edx-platform.git github.com/Stanford-Online/edx-theme.git
Name |
Last commit
|
Last update |
---|---|---|
cloudformation_templates | Loading commit data... | |
doc | Loading commit data... | |
fabfile | Loading commit data... | |
git-hooks | Loading commit data... | |
playbooks | Loading commit data... | |
util | Loading commit data... | |
version-script | Loading commit data... | |
.gitignore | Loading commit data... | |
AUTHORS | Loading commit data... | |
LICENSE.TXT | Loading commit data... | |
README.md | Loading commit data... | |
ansible-requirements.txt | Loading commit data... | |
fabric-requirements.txt | Loading commit data... | |
package_data.yaml | Loading commit data... |