summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-09-26 16:28:49 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-09-26 16:28:49 +0200
commit632c9b467d574e11daf209ee9441456f687d0a16 (patch)
treee17558dd30f9a163d2235eaf321d9622323e051d
parentd87e2ab414a75aba942d2778c3e71cef3cf7cd11 (diff)
make indentation more consistent
-rw-r--r--gbp/git_utils.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py
index 9885fc9c..d9307e77 100644
--- a/gbp/git_utils.py
+++ b/gbp/git_utils.py
@@ -24,7 +24,6 @@ class GitRepository(object):
raise GitRepositoryError
self.path = os.path.abspath(path)
-
def __check_path(self):
if os.getcwd() != self.path:
raise GitRepositoryError
@@ -39,7 +38,6 @@ class GitRepository(object):
output += popen.stdout.readlines()
return output, ret
-
def has_branch(self, branch):
"""check if the repository has branch 'branch'"""
self.__check_path()
@@ -48,7 +46,6 @@ class GitRepository(object):
return True
return False
-
def has_treeish(self, treeish):
"""check if the repository has the treeish object treeish"""
self.__check_path()
@@ -69,7 +66,6 @@ class GitRepository(object):
if line.startswith('*'):
return line.split(' ', 1)[1].strip()
-
def is_clean(self):
"""does the repository contain any uncommitted modifications"""
self.__check_path()
@@ -83,7 +79,6 @@ class GitRepository(object):
ret = False
return (ret, "".join(out))
-
def index_files(self):
"""List files in the index"""
out, ret = self.__git_getoutput('ls-files', ['-z'])
@@ -171,6 +166,7 @@ def _test():
import doctest
doctest.testmod()
+
if __name__ == '__main__':
_test()