[Pkg-owncloud-commits] [python-owncloud] 63/96: issue 20, check to see if we are in a .git directory before launching git for the head revision.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 22 01:28:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository python-owncloud.
commit 3e6991acd467cad1de289f57d506d0cf94b99724
Author: Craig <csawyer at yumaed.org>
Date: Thu Mar 28 14:10:21 2013 -0700
issue 20, check to see if we are in a .git directory before launching git for the head revision.
---
csync/version.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/csync/version.py b/csync/version.py
index d241a9e..d21a980 100644
--- a/csync/version.py
+++ b/csync/version.py
@@ -88,6 +88,9 @@ class gitVersion(ver):
"""if git is around, return the current version and save it.
otherwise return the saved copy, or 00 if not already saved.
"""
+ gitdir = os.path.join(os.path.dirname(os.path.abspath(self.verfile)),'.git')
+ if not os.path.exists(gitdir):
+ return '00'
cmd = 'git rev-parse --verify HEAD'.split()
try:
out = subprocess.check_output(cmd)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/python-owncloud.git
More information about the Pkg-owncloud-commits
mailing list