From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Philippe Martens" Subject: bug: git fast-import should ignore configuration variable core.ignorecase Date: Sun, 22 Apr 2012 14:23:51 +0200 Message-ID: <001401cd2082$c6af7fc0$540e7f40$@metrum.lu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0015_01CD2093.8A393A20" To: , X-From: msysgit+bncCAAQsOrQ_AQaBFkiSG8@googlegroups.com Sun Apr 22 18:43:29 2012 Return-path: Envelope-to: gcvm-msysgit@m.gmane.org Received: from mail-lpp01m010-f58.google.com ([209.85.215.58]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLzsn-0004m8-0a for gcvm-msysgit@m.gmane.org; Sun, 22 Apr 2012 18:43:29 +0200 Received: by lamb11 with SMTP id b11sf7029259lam.3 for ; Sun, 22 Apr 2012 09:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:from:to:subject:date:message-id :mime-version:x-mailer:thread-index:x-junkmail-status :x-junkmail-signature-raw:x-junkmail-iwf:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-language; bh=dFJXcirndp1Lbso3Sgffb97Yxnf1eKNfIs4iN7d5A5Q=; b=Xs/zrPjXB4xS2dNMINy1WdHs2wuYxD/20NluzrY6ksjyOwh92OTuC8hI7QQkZJ3jDj lva4oz1+zQaI/+dKLTSLhhu6KVZUsWCaVEdP5I0x/lTRGGdwn/6v27femVoJZDb1vYPz 9DceLN65iyss6ID2CJHi1UZvC73r0GUwot6mI= Received: by 10.180.100.200 with SMTP id fa8mr860683wib.4.1335113008541; Sun, 22 Apr 2012 09:43:28 -0700 (PDT) X-BeenThere: msysgit@googlegroups.com Received: by 10.180.105.5 with SMTP id gi5ls1046620wib.3.gmail; Sun, 22 Apr 2012 09:43:27 -0700 (PDT) Received: by 10.180.8.137 with SMTP id r9mr1144629wia.2.1335113007135; Sun, 22 Apr 2012 09:43:27 -0700 (PDT) Received: by 10.216.216.204 with SMTP id g54mswep; Sun, 22 Apr 2012 05:23:54 -0700 (PDT) Received: by 10.14.96.134 with SMTP id r6mr3135599eef.1.1335097433815; Sun, 22 Apr 2012 05:23:53 -0700 (PDT) Received: by 10.14.96.134 with SMTP id r6mr3135598eef.1.1335097433788; Sun, 22 Apr 2012 05:23:53 -0700 (PDT) Received: from mirapoint21.brutele.be (mirapoint21.brutele.be. [212.68.199.158]) by gmr-mx.google.com with ESMTP id a14si11433477een.0.2012.04.22.05.23.53; Sun, 22 Apr 2012 05:23:53 -0700 (PDT) Received-SPF: neutral (google.com: 212.68.199.158 is neither permitted nor denied by best guess record for domain of philippe.martens@metrum.lu) client-ip=212.68.199.158; Received: from METRUMPHM (62-197-93-206.teledisnet.be [62.197.93.206]) by mirapoint21.brutele.be (MOS 4.2.3-GA) with ESMTP id BEW55276; Sun, 22 Apr 2012 14:23:50 +0200 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac0ggsaWTmA6/BjVQ4mhzgbRe15iMQ== X-Junkmail-Status: score=10/50, host=mirapoint21.brutele.be X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B0204.4F93F857.004E,ss=1,fgs=0, ip=0.0.0.0, so=2010-12-23 16:51:53, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false X-Original-Sender: philippe.martens@metrum.lu X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.68.199.158 is neither permitted nor denied by best guess record for domain of philippe.martens@metrum.lu) smtp.mail=philippe.martens@metrum.lu Precedence: list Mailing-list: list msysgit@googlegroups.com; contact msysgit+owners@googlegroups.com List-ID: X-Google-Group-Id: 152234828034 List-Post: , List-Help: , List-Archive: Sender: msysgit@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Language: fr-be Archived-At: This is a multipart message in MIME format. ------=_NextPart_000_0015_01CD2093.8A393A20 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0016_01CD2093.8A393A20" ------=_NextPart_001_0016_01CD2093.8A393A20 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello, =20 I=92m not quite sure if this is to be considered a Windows specific bug. I= =92m using Git-1.7.10-preview20120409 on Windows, but the problem exists in previous versions. =20 When fast-exporting | fast-importing on Windows a repository with case only renames, the resulting repository isn=92t a copy of the initial repository. This is because Windows repositories are created with core.ignorecase =3D t= rue by default. =20 The included script shows the problem: it creates a repository with SomeFile.txt renamed to SOMEFILE.txt, then fast-export it and fast-import i= t in two different repositories, with core.ignorecase=3Dfalse and core.ignorecase=3Dtrue. The sha-1 of the second commit in the repository wi= th core.ignorecase=3Dtrue is different from the initial repository because the rename is ignored. The situation is worse without rename detection on fast-export : the rename becomes a delete. =20 I think the configuration variable core.ignorecase should be ignored by fast-import, and case always taken into account in that case. =20 Kind regards, =20 Philippe Martens Lead Architect =20 METRUM Rue du Kiem, 163 L-8030 Strassen T=E9l : +352 26 00 87 01 Fax : +352 26 00 87 02 GSM : +352 661 26 00 37 Email : philippe.martens@metrum.lu Web : www.metrum.lu =20 P Please consider the environment before printing this e-mail. =20 --=20 *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to msysgit@googlegroups.com To unsubscribe from this group, send email to msysgit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/msysgit?hl=3Den_US?hl=3Den ------=_NextPart_001_0016_01CD2093.8A393A20 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hello,

 

I’m n= ot quite sure if this is to be considered a Windows specific bug. I’m= using Git-1.7.10-preview20120409 on Windows, but the problem exists in pre= vious versions.

 

When = fast-exporting | fast-importing on Windows a repository with case only rena= mes, the resulting repository isn’t a copy of the initial repository.= This is because Windows repositories are created with core.ignorecase =3D = true by default.

 

The = included script shows the problem: it creates a repository with SomeFile.tx= t renamed to SOMEFILE.txt, then fast-export it and fast-import it in two di= fferent repositories, with core.ignorecase=3Dfalse and core.ignorecase=3Dtr= ue. The sha-1 of the second commit in the repository with core.ignorecase= =3Dtrue is different from the initial repository because the rename is igno= red.

The situa= tion is worse without rename detection on fast-export : the rename becomes = a delete.

 

I think the= configuration variable core.ignorecase should be ignored by fast-import, a= nd case always taken into account in that case.

 

Kind regards,

 

Philippe Marten= s

Lead Architect

 

= METRUM

Rue du Kiem, 163

=

L-8030 Strassen

T=E9l : +352 26 00 87 01

Fax : +352 26 00 87 02

GS= M : +352 661 26 00 37

Email : philippe.martens@metrum.lu<= /span>

Web : www.metrum.lu

 

P Please consider the environment before p= rinting this e-mail.

=  

--
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
 
*** Please avoid top-posting. ***
 
You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, visit this group at
http:= //groups.google.com/group/msysgit?hl=3Den_US?hl=3Den
------=_NextPart_001_0016_01CD2093.8A393A20-- ------=_NextPart_000_0015_01CD2093.8A393A20 Content-Type: application/octet-stream; name="test-fast-import.sh" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="test-fast-import.sh" git init export=0A= cd export=0A= git config core.ignorecase true=0A= echo "With some content in it..." > SomeFile.txt=0A= git add .=0A= git commit -m "Add some file"=0A= git mv -f SomeFile.txt SOMEFILE.txt=0A= git commit -m "Rename it (case only)"=0A= git fast-export --all -M -C > ../git.fast-export=0A= git log --oneline=0A= =0A= git init ../ignorecase.false=0A= cd ../ignorecase.false=0A= git config core.ignorecase false=0A= git fast-import --quiet < ../git.fast-export=0A= git log --oneline=0A= =0A= git init ../ignorecase.true=0A= cd ../ignorecase.true=0A= git config core.ignorecase true=0A= git fast-import --quiet < ../git.fast-export=0A= git log --oneline=0A= cd ..=0A= ------=_NextPart_000_0015_01CD2093.8A393A20--