summaryrefslogtreecommitdiff
path: root/lib/git/utils.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-21 14:54:59 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-21 14:54:59 +0200
commitacb0fa8b94ef421ad60c8507b634759a472cd56c (patch)
tree0ad47c627f30b1c9f3e262ee0da51249bdc9f2ba /lib/git/utils.py
parenta2ec078f25eb357edd1912ca3dbd578979a51226 (diff)
downloadgitpython-acb0fa8b94ef421ad60c8507b634759a472cd56c.tar.gz
Fixed utils.touch which did not work as the 'time' arg was missing, and even if added the method fails if the file does not exist ( at least on linux )
repo.daemon_export: fixed test for it which still used the daemon_serve property that does not exist
Diffstat (limited to 'lib/git/utils.py')
-rw-r--r--lib/git/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/utils.py b/lib/git/utils.py
index 5d0ba8ca..8425a728 100644
--- a/lib/git/utils.py
+++ b/lib/git/utils.py
@@ -10,7 +10,8 @@ def dashify(string):
return string.replace('_', '-')
def touch(filename):
- os.utime(filename)
+ fp = open(filename, 'a')
+ fp.close()
def is_git_dir(d):
""" This is taken from the git setup.c:is_git_directory