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

Re: [PATCH] t0020-crlf: test rebase with text conversion and safecrlf

From
Yann Droneaud <ydroneaud@opteya.com>
Date
Jun 21, 2013, 14:24 UTC
Message-ID
<41e212cf1702cd60114f522f96627d20@meuh.org>
In-Reply-To
<1371824124-4242-1-git-send-email-ydroneaud@opteya.com>
Le 21.06.2013 16:15, Yann Droneaud a écrit :
Show 16 quoted lines
> This patch add two tests to reproduce the problems described
> in thread "git rebase fail with CRLF conversion"
>  <fb20a7d711fdd218f58f1f2090b1c515@meuh.org>
>  <http://thread.gmane.org/gmane.comp.version-control.git/228613>
>  <http://marc.info/?l=git&m=137182211414404&w=2>
>
> - Add and commit a file with CRLF,
> - Add and commit a .gitattributes with text flag for the file,
> - Convert CRLF to LF in file, commit the change,
> - Rebase the whole on top of another parent
>   The rebase currently failed.
>
> This scenario is repeated twice, first with core.safecrlf set to 
> warn,
> a second time with core.safecrlf set to true.
>
Note: those two tests might failed as described in message
"git rebase fail with CRLF conversion"
  <fb20a7d711fdd218f58f1f2090b1c515@meuh.org>
  <http://thread.gmane.org/gmane.comp.version-control.git/228613>
  <http://marc.info/?l=git&m=137182211414404&w=2>
I haven't found a testcase to reproduce the same exact failure at will.

So this patch should probably not used asis until the two kind of errors can be reproduced.

Additionnaly, It should also be tested on a CRLF system (Windows).
> git diff will also fail when core.safecrlf is set to true
> and the file is not already converted to LF.
>
It might be a test on its own.
Regards
-- 
Yann Droneaud
OPTEYA
Previous: Yann DroneaudNext: Yann Droneaud
Message 4 of 5 in “git rebase fail with CRLF conversion”
  1. Yann DroneaudJun 21, 2013
  2. Yann DroneaudJun 21, 2013
  3. t0020-crlf: test rebase with text conversion and safecrlfYann Droneaud, Jun 21, 2013
  4. Yann DroneaudJun 21, 2013
  5. Yann DroneaudJun 21, 2013

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.