# Git unpack-objects on Windows

4 messages from 2011-01-13 to 2011-01-13. Participants: Kevin Sheedy, Johannes Sixt, Jonathan Nieder.
Thread: https://gitlist.dev/t/26272

## Kevin Sheedy, 2011-01-13 11:07

Subject: Git unpack-objects on Windows
Message-ID: <1294916875939-5917819.post@n2.nabble.com>
URL: https://gitlist.dev/e/1294916875939-5917819.post%40n2.nabble.com

```

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.

```

## Johannes Sixt, 2011-01-13 12:30

Subject: Re: Git unpack-objects on Windows
Message-ID: <4D2EF04B.20108@viscovery.net>
URL: https://gitlist.dev/e/4D2EF04B.20108%40viscovery.net
In-Reply-To: <1294916875939-5917819.post@n2.nabble.com>

```
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

```

## Kevin Sheedy, 2011-01-13 13:54

Subject: Re: Git unpack-objects on Windows
Message-ID: <1294926881696-5918228.post@n2.nabble.com>
URL: https://gitlist.dev/e/1294926881696-5918228.post%40n2.nabble.com
In-Reply-To: <4D2EF04B.20108@viscovery.net>

```

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.

```

## Jonathan Nieder, 2011-01-13 19:40

Subject: Re: Git unpack-objects on Windows
Message-ID: <20110113194003.GA20855@burratino>
URL: https://gitlist.dev/e/20110113194003.GA20855%40burratino
In-Reply-To: <1294926881696-5918228.post@n2.nabble.com>

```
(+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

```
