grim/local-pipelines

vcs: add node method to git backend

2016-07-28, Sean Farley
76175381c6fe
Parents 6504522f8b27
Children 605c52f5ed1f
vcs: add node method to git backend
--- a/pipelines/vcs.py Thu Jul 28 15:07:43 2016 -0500
+++ b/pipelines/vcs.py Thu Jul 28 00:58:35 2016 -0700
@@ -48,6 +48,11 @@
return run_command('git rev-parse --abbrev-ref HEAD',
self._path)
+ @property
+ def node(self):
+ return run_command('git rev-parse HEAD',
+ self._path)
+
class hg_backend(object):
def __init__(self, path):