git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[Bug?] git submodule add doesn't respect core.autocrlf

From
Edward Z. Yang <edwardzyang@thewritingpot.com>
Date
Jun 26, 2008, 05:43 UTC
Message-ID
<g3vaaq$pm1$1@ger.gmane.org>

It doesn't appear that git-submodule add respects crlf, as evidenced by this set of commands on Windows:

mkdir test cd test git init git config core.safecrlf true git config core.autocrlf true git submodule add http://repo.or.cz/w/htmlpurifier.git htmlpurifier

You get: "fatal: LF would be replaced by CRLF in .gitmodules" and inspecting .gitmodules reveals that it uses LF, instead of CRLF.

Can anyone reproduce? Thanks.
Next: Lars Hjemli
Message 1 of 3 in “[Bug?] git submodule add doesn't respect core.autocrlf”
  1. Edward Z. YangJun 26, 2008
  2. Lars HjemliJun 26, 2008
  3. write .gitmodules according to core.autocrlfJohannes Schindelin, Jun 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.