-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
In https://github.com/progit/progit2/blob/master/book/10-git-internals/sections/objects.asc#object-storage, we use ruby to hash what is up, doc?
and we get:
bd9dbf5aae1a3862dd1526723246b20206e5fc37
However, I hash this string with hash-object
, from which I got a different hash:
$ echo "what is up, doc?" | git hash-object --stdin -w
7108f7ecb345ee9d0084193f147cdad4d2998293
$ git cat-file -p 7108f7ecb345ee9d0084193f147cdad4d2998293
what is up, doc?
Test on:
macOS 10.13.5
git version 2.15.1 (Apple Git-101)
config:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
Metadata
Metadata
Assignees
Labels
No labels