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

Git CVS Import Questions

From
SFSamir Faci <samir@esamir.com>
Date
Jul 29, 2010, 14:17 UTC
Message-ID
<AANLkTin_d_wKxyJDMbjz4vFacr6GNYzE_aUGi2vbXW3V@mail.gmail.com>
I have a question about git cvs's import.
I have the following setup in ~/.bashrc:

export CVS_RSH=ssh export CVSROOT=cvs:/cvs export CVS_RSH CVSROOT

and I can do a cvs import using git by doing something along these lines:

mkdir bar; git cvsimport -v Foo/Bar which checks out the history of module Bar into the current directory (in this case bar)

now... if I do this again in another directory

mkdir bar2; git cvsimport -v Foo/Bar which repeats the same process the hashes don't match up.

case in point: git log --oneline | head -n 1 2fa5b70 ChangeLog: * Fixing build file syntax error. git log --oneline | head -n 1 ccef115 ChangeLog: * Fixing build file syntax error.

Now, correct me if I'm wrong.. but I thought the hashes were generated based on the content of the diff. So shouldn't two cvs checkouts containing the same data have the same hashes? ie. If a git commit is generated based on a particular diff, then the hash should always be the same, should it not?

Am I missing something?  I'm just trying to understand the behavior...
-- 
--
Samir Faci
*insert title*
fortune | cowsay -f /usr/share/cows/tux.cow
Next: Jonathan Nieder
Message 1 of 2 in “Git CVS Import Questions”
  1. Samir FaciJul 29, 2010
  2. Jonathan NiederJul 30, 2010

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.