diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-21 14:59:30 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-21 14:59:30 +0200 |
commit | 6fcbda4e363262a339d1cacbf7d2945ec3bd83f0 (patch) | |
tree | b7c5cc42bd0f29526e872ac8bb84bc4615dacb80 /lib/git/repo.py | |
parent | 35a09c0534e89b2d43ec4101a5fb54576b577905 (diff) | |
download | gitpython-6fcbda4e363262a339d1cacbf7d2945ec3bd83f0.tar.gz |
touch method improved to open for appending which would not clear the file and be like an actual touch
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r-- | lib/git/repo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index 37847c98..47b99ea4 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -19,7 +19,7 @@ from config import GitConfigParser from remote import Remote def touch(filename): - fp = open(filename, "w") + fp = open(filename, "a") fp.close() def is_git_dir(d): |