Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
contrib/hooks/post-receive-email: fix typo
[gitweb.git]
/
fast-import.c
diff --git
a/fast-import.c
b/fast-import.c
index 6f888f64767ee78ef198180c6e628ddb60e09191..f93d7d6c9bf2db021ceb65766da87af32aecc1d1 100644
(file)
--- a/
fast-import.c
+++ b/
fast-import.c
@@
-1616,6
+1616,7
@@
static void cmd_data(struct strbuf *sb)
char *term = xstrdup(command_buf.buf + 5 + 2);
size_t term_len = command_buf.len - 5 - 2;
+ strbuf_detach(&command_buf, NULL);
for (;;) {
if (strbuf_getline(&command_buf, stdin, '\n') == EOF)
die("EOF in data (terminator '%s' not found)", term);