git ssb

0+

cel / pull-git-remote-helper



Commit 17c29f2cc34026a1af2ec44ea384e15716514a8f

Identity file using hex hash

Charles Lehner committed on 2/8/2016, 4:37:24 AM
Parent: cfeb530e50e371d1f66077bccf8a22e8e15f6427

Files changed

test/run.jschanged
test/run.jsView
@@ -75,17 +75,19 @@
7575 tape('make a commit and push', function (t) {
7676 var commitMessage = 'Initial commit'
7777 var fileName = 'blah.txt'
7878 var fileContents = 'i am a file'
79+ var fileHash = new Buffer(20)
80+ fileHash.hexWrite('68bd10497ea68e91fa85024d0a0b2fe54e212914')
7981
8082 var objects = t.items(t.deepEquals, [
8183 [{
8284 type: 'commit',
8385 data: 'tree 75c54aa020772a916853987a03bff7079463a861\nauthor ' + userStr + ' 1000000000 -0500\ncommitter ' + userStr + ' 1000000000 -0500\n\n' + commitMessage + '\n'
8486 }, 'got the commit'],
8587 [{
8688 type: 'tree',
87- data: '100644 ' + fileName + '\u0000h=\u0010I~&\u000e\u0011z\u0005\u0002M\n\u000b/eN!)\u0014'
89+ data: '100644 ' + fileName + '\0' + fileHash.toString('ascii')
8890 }, 'got the tree'],
8991 [{
9092 type: 'blob', data: fileContents
9193 }, 'got the blob']

Built with git-ssb-web