Thread (20 messages) flat view 20 messages, 5 authors, 2016-06-15

Re: Garbage in .git directories???

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2016-06-15 22:42:06

Petr Baudis wrote:
quoted hunk ↗ jump to hunk
Dear diary, on Tue, Sep 20, 2005 at 01:16:14AM CEST, I got a letter

Another idea - try this patch:
diff --git a/init-db.c b/init-db.c
--- a/init-db.c
+++ b/init-db.c
@@ -154,6 +154,7 @@ static void copy_templates(const char *g
 	}
 
 	memcpy(path, git_dir, len);
+	path[len] = 0;
 	copy_templates_1(path, len,
 			 template_path, template_len,
 			 dir);
This seems to have worked.

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help