summaryrefslogtreecommitdiff
path: root/lib/git
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2008-06-07 16:23:42 +0200
committerFlorian Apolloner <florian@apolloner.eu>2008-06-07 16:23:42 +0200
commitef9395f5ffe75f4e43d80cd1fa7b34c8a4db66fe (patch)
tree8cc2dd0502a838489925e68861f0542183c177c9 /lib/git
parent24effa4861d6d1e8cffe848ae63fa2ed40be03f6 (diff)
parent9aa93b5890acb152c5824a8f75c221cf1addfd1b (diff)
downloadgitpython-ef9395f5ffe75f4e43d80cd1fa7b34c8a4db66fe.tar.gz
Merge branch 'master' of git://gitorious.org/git-python/mainline
Diffstat (limited to 'lib/git')
-rw-r--r--lib/git/__init__.py5
-rw-r--r--lib/git/cmd.py18
2 files changed, 10 insertions, 13 deletions
diff --git a/lib/git/__init__.py b/lib/git/__init__.py
index 54f77baf..7de5088a 100644
--- a/lib/git/__init__.py
+++ b/lib/git/__init__.py
@@ -1,10 +1,7 @@
import os
import inspect
-# grab the version information
-v = open(os.path.join(os.path.dirname(__file__), '..', '..', 'VERSION'))
-__version__ = v.readline().strip()
-v.close()
+__version__ = 'git'
from git.actor import Actor
from git.blob import Blob
diff --git a/lib/git/cmd.py b/lib/git/cmd.py
index 85d72353..afa13e2c 100644
--- a/lib/git/cmd.py
+++ b/lib/git/cmd.py
@@ -51,11 +51,11 @@ class Git(MethodMissingMixin):
return self.git_dir
def execute(self, command,
- istream = None,
- with_status = False,
- with_stderr = False,
- with_exceptions = False,
- with_raw_output = False,
+ istream=None,
+ with_status=False,
+ with_stderr=False,
+ with_exceptions=False,
+ with_raw_output=False,
):
"""
Handles executing the command on the shell and consumes and returns
@@ -96,10 +96,10 @@ class Git(MethodMissingMixin):
# Start the process
proc = subprocess.Popen(command,
- cwd = self.git_dir,
- stdin = istream,
- stderr = stderr,
- stdout = subprocess.PIPE
+ cwd=self.git_dir,
+ stdin=istream,
+ stderr=stderr,
+ stdout=subprocess.PIPE
)
# Wait for the process to return