diff options
author | Junio C Hamano <junkio@cox.net> | 2006-01-05 20:52:50 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-05 20:52:50 -0800 |
commit | 92e802c6ccb96d1b5e8561b0a136d43d82253293 (patch) | |
tree | 9b6c265d69d1dc8bcce36c86a44674cfb010a6d7 /entry.c | |
parent | 17dff84b5e745ba17a5b3ae5591d79f96b165d48 (diff) | |
parent | c1fe2fe4fe685e0587c3949f953aab726de88994 (diff) | |
download | git-1.0.7.tar.gz |
GIT 1.0.7v1.0.7
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'entry.c')
-rw-r--r-- | entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ static void remove_subtree(const char *path) static int create_file(const char *path, unsigned int mode) { mode = (mode & 0100) ? 0777 : 0666; - return open(path, O_WRONLY | O_TRUNC | O_CREAT | O_EXCL, mode); + return open(path, O_WRONLY | O_CREAT | O_EXCL, mode); } static int write_entry(struct cache_entry *ce, const char *path, struct checkout *state) |