From acb0fa8b94ef421ad60c8507b634759a472cd56c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 21 Oct 2009 14:54:59 +0200 Subject: 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 --- lib/git/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/git/utils.py') 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 -- cgit v1.2.1