grim/local-pipelines

vcs: add owner proper to git backend

2016-07-28, Sean Farley
da78cebcf5e2
Parents 605c52f5ed1f
Children 57202f1fa154
vcs: add owner proper to git backend
--- a/pipelines/vcs.py Thu Jul 28 00:58:59 2016 -0700
+++ b/pipelines/vcs.py Thu Jul 28 00:59:36 2016 -0700
@@ -60,6 +60,10 @@
url = url[:-4]
return url.replace(':', '/').split('/')[-2:]
+ @property
+ def owner(self):
+ return self._owner_repo[0]
+
class hg_backend(object):
def __init__(self, path):