{"thread":{"id":"26272","subject":"Git unpack-objects on Windows","startedAt":"2011-01-13T11:07:55Z","lastAt":"2011-01-13T19:40:03Z","messageCount":4,"participants":["Kevin Sheedy","Johannes Sixt","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"159434","messageId":"1294916875939-5917819.post@n2.nabble.com","threadId":"26272","inReplyTo":null,"subject":"Git unpack-objects on Windows","fromName":"Kevin Sheedy","fromEmail":"kevinsheedy@gmail.com","sentAt":"2011-01-13T11:07:55Z","receivedAt":"2011-01-13T11:07:55Z","isPatch":false,"sender":{"key":"kevinsheedy@gmail.com","avatar":"https://gravatar.com/avatar/f3999130e74059a970f3bdc86f7521aab79a66ba4b00aa469952b103466bacbb?d=mp&s=160"},"body":"\nI'm trying to import a cvs repository into git using cvs2git. After running\ncvs2git, I'm left with a git pack file. I'm now trying to unpack this file\nusing:\n\ngit unpack-objects < myfile.pack\n\nOr to be more exact:\n\n$ git unpack-objects <\n\"C:/dev/cvsToGitWorkingRepository/.git/objects/pack/pack-479ea920f4a7389f8a52eb6062.pack\"\nUnpacking objects: 100% (66409/66409), done.\n\nIt looks like it worked except I'm not getting any unpacked files.\n\nHas anybody gotten git unpack-objects to work on a Windows system?\n-- \nView this message in context: http://git.661346.n2.nabble.com/Git-unpack-objects-on-Windows-tp5917819p5917819.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"159437","messageId":"4D2EF04B.20108@viscovery.net","threadId":"26272","inReplyTo":"1294916875939-5917819.post@n2.nabble.com","subject":"Re: Git unpack-objects on Windows","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2011-01-13T12:30:03Z","receivedAt":"2011-01-13T12:30:03Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 1/13/2011 12:07, schrieb Kevin Sheedy:\n> \n> I'm trying to import a cvs repository into git using cvs2git. After running\n> cvs2git, I'm left with a git pack file. I'm now trying to unpack this file\n> using:\n> \n> git unpack-objects < myfile.pack\n> \n> Or to be more exact:\n> \n> $ git unpack-objects <\n> \"C:/dev/cvsToGitWorkingRepository/.git/objects/pack/pack-479ea920f4a7389f8a52eb6062.pack\"\n> Unpacking objects: 100% (66409/66409), done.\n> \n> It looks like it worked except I'm not getting any unpacked files.\n\nOnly objects are unpacked that are not already in the object store. Since\nyou did not move the pack file (and its index) away from the object store,\nnone of its objects needed to be unpacked.\n\nIOW, you observed expected behavior.\n\nWhy do you want to unpack some 66000 objects, I have to wonder?\n\n-- Hannes\n"},{"id":"159439","messageId":"1294926881696-5918228.post@n2.nabble.com","threadId":"26272","inReplyTo":"4D2EF04B.20108@viscovery.net","subject":"Re: Git unpack-objects on Windows","fromName":"Kevin Sheedy","fromEmail":"kevinsheedy@gmail.com","sentAt":"2011-01-13T13:54:41Z","receivedAt":"2011-01-13T13:54:41Z","isPatch":false,"sender":{"key":"kevinsheedy@gmail.com","avatar":"https://gravatar.com/avatar/f3999130e74059a970f3bdc86f7521aab79a66ba4b00aa469952b103466bacbb?d=mp&s=160"},"body":"\nAh, ok. I guess unpacking isn't what I need to do. I'm quite new to git and\ndon't really understand the internals yet. Anyway, cvs2git produced 2 .dat\nfiles that I'm trying to import into a git repository using the following\ncommands:\n\ngit init\ncat cvs2svn-tmp/git-blob.dat cvs2svn-tmp/git-dump.dat | git fast-import\n\nI'm following the instructions from here:\nhttp://cvs2svn.tigris.org/cvs2git.html\n\nIt looks like the objects have been added to the repository but that no\nbranches have been created.\n\nAny idea how to create a branch and add the 66000 objects to it?\n-- \nView this message in context: http://git.661346.n2.nabble.com/Git-unpack-objects-on-Windows-tp5917819p5918228.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"159451","messageId":"20110113194003.GA20855@burratino","threadId":"26272","inReplyTo":"1294926881696-5918228.post@n2.nabble.com","subject":"Re: Git unpack-objects on Windows","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2011-01-13T19:40:03Z","receivedAt":"2011-01-13T19:40:03Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"(+cc: users@cvs2svn so the web page can be improved)\n\nKevin Sheedy wrote[1]:\n\n> git init\n> cat cvs2svn-tmp/git-blob.dat cvs2svn-tmp/git-dump.dat | git fast-import\n\nYou're almost there.  I'd suggest two steps:\n\n\tgitk --all;\t# reconnaissance\n\tgit checkout\n\nHope that helps,\nJonathan\n\n[1] following http://cvs2svn.tigris.org/cvs2git.html\n"}]}