git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git repository modified after migration
@ 2015-12-25 20:49 Yang Yu
  2016-01-11 15:04 ` Michael J Gruber
  0 siblings, 1 reply; 6+ messages in thread
From: Yang Yu @ 2015-12-25 20:49 UTC (permalink / raw)
  To: git

I migrated a 11G git repository converted from svn on a host with
Debian 8.2, reiserfs, git 2.1.4 to a host with Ubuntu 12.04.5 LTS,
xfs, git 2.6.4. After the migration, `git status` showing a good
amount of files modified.

I did the transfer with
1) `rsync -azP`, after noticing the modified files I ran `rsync -avH
--delete` but it did not correct the problem
2) tar zcf, then on the destination download the tar.gz (served by
nginx) with wget

Both had the same result. But the original repository was still clean.

I did some comparison between "modified" and original files
a) same hash (md5sum, shasum)
b) same permission (-rw-r--r-- 1 )
c) same encoding and line termination (UTF-8 Unicode (with BOM) text,
with CRLF line terminators)
d) no git attributes for either


On the destination host, I ran `git checkout` on each of those
modified files. After one pass I got less modified files. Repeating
`git checkout` on remaining files for a few more times, finally I got
a clean repository on the destination host.

What could have caused git to consider those files as modified? And
why multiple `git checkout` again the same file was necessary?

Thanks.


Yang

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-12 18:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-25 20:49 git repository modified after migration Yang Yu
2016-01-11 15:04 ` Michael J Gruber
2016-01-11 17:48   ` Yang Yu
2016-01-11 18:19   ` Junio C Hamano
2016-01-12  7:01     ` Michael J Gruber
2016-01-12 18:07       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).