Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
README.md: move down historical explanation about the name
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 73ccd49a465b1cf8b668edf8c13ea75d6b8de718..aab1872b4c95416fc7c8ae9c93cd25f341e2d4c1 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-396,7
+396,7
@@
void add_to_alternates_file(const char *reference)
struct strbuf line = STRBUF_INIT;
int found = 0;
- while (strbuf_getline(&line, in
, '\n'
) != EOF) {
+ while (strbuf_getline(&line, in) != EOF) {
if (!strcmp(reference, line.buf)) {
found = 1;
break;