git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bugreport: core-tutorial example outdated?
@ 2006-10-25 17:15 Clemens Koller
  2006-10-25 17:23 ` Johannes Schindelin
  2006-10-25 17:24 ` J. Bruce Fields
  0 siblings, 2 replies; 4+ messages in thread
From: Clemens Koller @ 2006-10-25 17:15 UTC (permalink / raw)
  To: git

Hi there!

I just studied
http://www.kernel.org/pub/software/scm/git/docs/core-tutorial.html
to get more into the details of git. But the following commands:

$ git-cat-file -t 557db03de997c86a4a028e1ebd3a1ceb225be238
$ git-cat-file "blob" 557db03

just bring up a

fatal: Not a valid object name 557db03de

I guess the documentation is slightly outdated and might need a fix.

Best greets,
-- 
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50

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

* Re: Bugreport: core-tutorial example outdated?
  2006-10-25 17:15 Bugreport: core-tutorial example outdated? Clemens Koller
@ 2006-10-25 17:23 ` Johannes Schindelin
  2006-10-25 19:08   ` Clemens Koller
  2006-10-25 17:24 ` J. Bruce Fields
  1 sibling, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2006-10-25 17:23 UTC (permalink / raw)
  To: Clemens Koller; +Cc: git

Hi,

On Wed, 25 Oct 2006, Clemens Koller wrote:

> I just studied
> http://www.kernel.org/pub/software/scm/git/docs/core-tutorial.html
> to get more into the details of git. But the following commands:
> 
> $ git-cat-file -t 557db03de997c86a4a028e1ebd3a1ceb225be238
> $ git-cat-file "blob" 557db03
> 
> just bring up a
> 
> fatal: Not a valid object name 557db03de

Did you actually add a file with the content "Hello World\n"? If not, you 
should not be surprised.

Hth,
Dscho

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

* Re: Bugreport: core-tutorial example outdated?
  2006-10-25 17:15 Bugreport: core-tutorial example outdated? Clemens Koller
  2006-10-25 17:23 ` Johannes Schindelin
@ 2006-10-25 17:24 ` J. Bruce Fields
  1 sibling, 0 replies; 4+ messages in thread
From: J. Bruce Fields @ 2006-10-25 17:24 UTC (permalink / raw)
  To: Clemens Koller; +Cc: git

On Wed, Oct 25, 2006 at 07:15:17PM +0200, Clemens Koller wrote:
> Hi there!
> 
> I just studied
> http://www.kernel.org/pub/software/scm/git/docs/core-tutorial.html
> to get more into the details of git. But the following commands:
> 
> $ git-cat-file -t 557db03de997c86a4a028e1ebd3a1ceb225be238
> $ git-cat-file "blob" 557db03
> 
> just bring up a
> 
> fatal: Not a valid object name 557db03de
> 
> I guess the documentation is slightly outdated and might need a fix.

Works for me.  The precise names there depend on the files you create
being byte-for-byte identical to the ones created by the echo commands
in the tutorial.  If yours aren't identical, then you should just use
the names that the previous ls command instead.


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

* Re: Bugreport: core-tutorial example outdated?
  2006-10-25 17:23 ` Johannes Schindelin
@ 2006-10-25 19:08   ` Clemens Koller
  0 siblings, 0 replies; 4+ messages in thread
From: Clemens Koller @ 2006-10-25 19:08 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

Hello, Dscho!

>>I just studied
>>http://www.kernel.org/pub/software/scm/git/docs/core-tutorial.html
> 
> Did you actually add a file with the content "Hello World\n"? If not, you 
> should not be surprised.

Argh... yes, I even adopted my numbers to my case, but I just didn't
include the /55/... 2 letter folder name in the /55/7db03de997 object names... :-(

$ ls .git/objects/??/*
.git/objects/55/7db03de997c86a4a028e1ebd3a1ceb225be238
.git/objects/f2/4c74a2e500f5ee1332c86b94199f52b1d1d962
$ git-cat-file -t 7db03de997           <- wrong!
fatal: Not a valid object name 7db03de997
$ git-cat-file -t 557db03de            <- correct!
blob

Jup, those little details... once you don't stick to any tags.
Fine! Thanks! The tutorial, too!

Best greets,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50

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

end of thread, other threads:[~2006-10-25 19:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-25 17:15 Bugreport: core-tutorial example outdated? Clemens Koller
2006-10-25 17:23 ` Johannes Schindelin
2006-10-25 19:08   ` Clemens Koller
2006-10-25 17:24 ` J. Bruce Fields

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).