Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pkt-line: teach packet_read_line to chomp newlines
[gitweb.git]
/
builtin
/
fetch-pack.c
diff --git
a/builtin/fetch-pack.c
b/builtin/fetch-pack.c
index 940ae35dc2ce4923a248896eb764f145312d71b4..f73664f433c9b602515fe28456da8c86ef0fe4b8 100644
(file)
--- a/
builtin/fetch-pack.c
+++ b/
builtin/fetch-pack.c
@@
-105,8
+105,6
@@
int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
int n = packet_read_line(0, line, sizeof(line));
if (!n)
break;
- if (line[n-1] == '\n')
- n--;
string_list_append(&sought, xmemdupz(line, n));
}
}