* Git unpack-objects on Windows
@ 2011-01-13 11:07 Kevin Sheedy
2011-01-13 12:30 ` Johannes Sixt
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Sheedy @ 2011-01-13 11:07 UTC (permalink / raw)
To: git
I'm trying to import a cvs repository into git using cvs2git. After running
cvs2git, I'm left with a git pack file. I'm now trying to unpack this file
using:
git unpack-objects < myfile.pack
Or to be more exact:
$ git unpack-objects <
"C:/dev/cvsToGitWorkingRepository/.git/objects/pack/pack-479ea920f4a7389f8a52eb6062.pack"
Unpacking objects: 100% (66409/66409), done.
It looks like it worked except I'm not getting any unpacked files.
Has anybody gotten git unpack-objects to work on a Windows system?
--
View this message in context: http://git.661346.n2.nabble.com/Git-unpack-objects-on-Windows-tp5917819p5917819.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git unpack-objects on Windows
2011-01-13 11:07 Git unpack-objects on Windows Kevin Sheedy
@ 2011-01-13 12:30 ` Johannes Sixt
2011-01-13 13:54 ` Kevin Sheedy
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Sixt @ 2011-01-13 12:30 UTC (permalink / raw)
To: Kevin Sheedy; +Cc: git
Am 1/13/2011 12:07, schrieb Kevin Sheedy:
>
> I'm trying to import a cvs repository into git using cvs2git. After running
> cvs2git, I'm left with a git pack file. I'm now trying to unpack this file
> using:
>
> git unpack-objects < myfile.pack
>
> Or to be more exact:
>
> $ git unpack-objects <
> "C:/dev/cvsToGitWorkingRepository/.git/objects/pack/pack-479ea920f4a7389f8a52eb6062.pack"
> Unpacking objects: 100% (66409/66409), done.
>
> It looks like it worked except I'm not getting any unpacked files.
Only objects are unpacked that are not already in the object store. Since
you did not move the pack file (and its index) away from the object store,
none of its objects needed to be unpacked.
IOW, you observed expected behavior.
Why do you want to unpack some 66000 objects, I have to wonder?
-- Hannes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git unpack-objects on Windows
2011-01-13 12:30 ` Johannes Sixt
@ 2011-01-13 13:54 ` Kevin Sheedy
2011-01-13 19:40 ` Jonathan Nieder
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Sheedy @ 2011-01-13 13:54 UTC (permalink / raw)
To: git
Ah, ok. I guess unpacking isn't what I need to do. I'm quite new to git and
don't really understand the internals yet. Anyway, cvs2git produced 2 .dat
files that I'm trying to import into a git repository using the following
commands:
git init
cat cvs2svn-tmp/git-blob.dat cvs2svn-tmp/git-dump.dat | git fast-import
I'm following the instructions from here:
http://cvs2svn.tigris.org/cvs2git.html
It looks like the objects have been added to the repository but that no
branches have been created.
Any idea how to create a branch and add the 66000 objects to it?
--
View this message in context: http://git.661346.n2.nabble.com/Git-unpack-objects-on-Windows-tp5917819p5918228.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git unpack-objects on Windows
2011-01-13 13:54 ` Kevin Sheedy
@ 2011-01-13 19:40 ` Jonathan Nieder
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Nieder @ 2011-01-13 19:40 UTC (permalink / raw)
To: Kevin Sheedy; +Cc: git, Johannes Sixt, users
(+cc: users@cvs2svn so the web page can be improved)
Kevin Sheedy wrote[1]:
> git init
> cat cvs2svn-tmp/git-blob.dat cvs2svn-tmp/git-dump.dat | git fast-import
You're almost there. I'd suggest two steps:
gitk --all; # reconnaissance
git checkout
Hope that helps,
Jonathan
[1] following http://cvs2svn.tigris.org/cvs2git.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-13 20:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 11:07 Git unpack-objects on Windows Kevin Sheedy
2011-01-13 12:30 ` Johannes Sixt
2011-01-13 13:54 ` Kevin Sheedy
2011-01-13 19:40 ` Jonathan Nieder
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).