]> git.ipfire.org Git - thirdparty/git.git/commit - sha1_file.c
clone/sha1_file: read info/alternates with strbuf_getline()
authorJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2015 20:29:24 +0000 (13:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jan 2016 18:34:53 +0000 (10:34 -0800)
commit3f163962282d2d8bea914c32d81ad38544044f78
tree4525c22cabc4d4265c4efc18f5768ae5b52ec731
parent18814d0e2d7d5924a799bcf0cae3a0aaba569613
clone/sha1_file: read info/alternates with strbuf_getline()

$GIT_OBJECT_DIRECTORY/info/alternates is a text file that can be
edited with a DOS editor.  We do not want to use the real path with
CR appended at the end.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
sha1_file.c