Remove superfluous commas from example repo README (#158)

Summary:
Using `array.join()` added commas at the start of some lines; I meant to
use `array.join("")`.

(I’ve now inspected the full generated contents of both repos, and they
look good.)

Test Plan:
It is expected that these attributes of the snapshots should change.
There’s no need to carefully check the SHAs.

wchargin-branch: readme-change
This commit is contained in:
William Chargin 2018-04-27 11:48:40 -07:00 committed by GitHub
parent 8e9ddbf9fc
commit c7235f6e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 54 deletions

View File

@ -3,37 +3,37 @@
exports[`loadRepository loads from HEAD 1`] = ` exports[`loadRepository loads from HEAD 1`] = `
Object { Object {
"commits": Map { "commits": Map {
"3507b7c8690e329477c76b73f8511f78fdbafe52" => Object { "3715ddfb8d4c4fd2a6f6af75488c82f84c92ec2f" => Object {
"hash": "3507b7c8690e329477c76b73f8511f78fdbafe52", "hash": "3715ddfb8d4c4fd2a6f6af75488c82f84c92ec2f",
"treeHash": "aeb32ba2769e46068cc09aa05723b5dd81c2e3a0", "treeHash": "7be3ecfee5314ffa9b2d93fc4377792b2d6d70ed",
}, },
"1468ff8437299dc4aa426996784be30a87226007" => Object { "69c5aad50eec8f2a0a07c988c3b283a6490eb45b" => Object {
"hash": "1468ff8437299dc4aa426996784be30a87226007", "hash": "69c5aad50eec8f2a0a07c988c3b283a6490eb45b",
"treeHash": "77e66e35964b9c0a2cde52fb2640d3004b742feb", "treeHash": "bbf3b8b3d26a4f884b5c022d46851f593d329192",
}, },
"d6693032379c8c55aafc72ad355db29ce71396b0" => Object { "e8b7a8f19701cd5a25e4a097d513ead60e5f8bcc" => Object {
"hash": "d6693032379c8c55aafc72ad355db29ce71396b0", "hash": "e8b7a8f19701cd5a25e4a097d513ead60e5f8bcc",
"treeHash": "c32b1ddc3a622e7a7e30c0b3f56a78eaed19cfab", "treeHash": "819fc546cea489476ce8dc90785e9ba7753d0a8f",
}, },
"fb67eef11f7f34e4ad530ce36624c47fef0cd2e2" => Object { "d160cca97611e9dfed642522ad44408d0292e8ea" => Object {
"hash": "fb67eef11f7f34e4ad530ce36624c47fef0cd2e2", "hash": "d160cca97611e9dfed642522ad44408d0292e8ea",
"treeHash": "b936e6133d3316250f0a91779f72c72141279941", "treeHash": "569e1d383759903134df75230d63c0090196d4cb",
}, },
"849572148969b2c3480e8479604ccba3b189092a" => Object { "8d287c3bfbf8455ef30187bf5153ffc1b6eef268" => Object {
"hash": "849572148969b2c3480e8479604ccba3b189092a", "hash": "8d287c3bfbf8455ef30187bf5153ffc1b6eef268",
"treeHash": "e5e3b135d4f7d03e9906aead28c7757aa2b676bd", "treeHash": "3dfb84795e07341b05fad3a0d5a55f8304b2d7d8",
}, },
"db7608c2b4eba9ca72c6e3d636a7795cf9bcb97d" => Object { "c08ee3a4edea384d5291ffcbf06724a13ed72325" => Object {
"hash": "db7608c2b4eba9ca72c6e3d636a7795cf9bcb97d", "hash": "c08ee3a4edea384d5291ffcbf06724a13ed72325",
"treeHash": "5822dfcc81bf3ef8f99f68a21a33d07386fbd7b8", "treeHash": "2f7155e359fd0ecb96ffdca66fa45b6ed5792809",
}, },
"486bb61573b09069dc9a55023b06e72049f8556d" => Object { "c2b51945e7457546912a8ce158ed9d294558d294" => Object {
"hash": "486bb61573b09069dc9a55023b06e72049f8556d", "hash": "c2b51945e7457546912a8ce158ed9d294558d294",
"treeHash": "79ee2359849733d6a51fd1b5da1cebdbaa29254f", "treeHash": "bdff5d94193170015d6cbb549b7b630649428b1f",
}, },
}, },
"trees": Map { "trees": Map {
"aeb32ba2769e46068cc09aa05723b5dd81c2e3a0" => Object { "7be3ecfee5314ffa9b2d93fc4377792b2d6d70ed" => Object {
"entries": Map { "entries": Map {
".gitmodules" => Object { ".gitmodules" => Object {
"hash": "8c6cac301e763aa6d36466e0a775eb804be2c311", "hash": "8c6cac301e763aa6d36466e0a775eb804be2c311",
@ -41,7 +41,7 @@ Object {
"type": "blob", "type": "blob",
}, },
"README.txt" => Object { "README.txt" => Object {
"hash": "6e70bfb555b270a017c743df4cd7d35d5337e0ef", "hash": "0fb31858c8e3710be77e1dbb8880acf8a5543d82",
"name": "README.txt", "name": "README.txt",
"type": "blob", "type": "blob",
}, },
@ -61,9 +61,9 @@ Object {
"type": "tree", "type": "tree",
}, },
}, },
"hash": "aeb32ba2769e46068cc09aa05723b5dd81c2e3a0", "hash": "7be3ecfee5314ffa9b2d93fc4377792b2d6d70ed",
}, },
"77e66e35964b9c0a2cde52fb2640d3004b742feb" => Object { "bbf3b8b3d26a4f884b5c022d46851f593d329192" => Object {
"entries": Map { "entries": Map {
".gitmodules" => Object { ".gitmodules" => Object {
"hash": "8c6cac301e763aa6d36466e0a775eb804be2c311", "hash": "8c6cac301e763aa6d36466e0a775eb804be2c311",
@ -71,7 +71,7 @@ Object {
"type": "blob", "type": "blob",
}, },
"README.txt" => Object { "README.txt" => Object {
"hash": "6e70bfb555b270a017c743df4cd7d35d5337e0ef", "hash": "0fb31858c8e3710be77e1dbb8880acf8a5543d82",
"name": "README.txt", "name": "README.txt",
"type": "blob", "type": "blob",
}, },
@ -96,9 +96,9 @@ Object {
"type": "tree", "type": "tree",
}, },
}, },
"hash": "77e66e35964b9c0a2cde52fb2640d3004b742feb", "hash": "bbf3b8b3d26a4f884b5c022d46851f593d329192",
}, },
"c32b1ddc3a622e7a7e30c0b3f56a78eaed19cfab" => Object { "819fc546cea489476ce8dc90785e9ba7753d0a8f" => Object {
"entries": Map { "entries": Map {
".gitmodules" => Object { ".gitmodules" => Object {
"hash": "8c6cac301e763aa6d36466e0a775eb804be2c311", "hash": "8c6cac301e763aa6d36466e0a775eb804be2c311",
@ -106,7 +106,7 @@ Object {
"type": "blob", "type": "blob",
}, },
"README.txt" => Object { "README.txt" => Object {
"hash": "6e70bfb555b270a017c743df4cd7d35d5337e0ef", "hash": "0fb31858c8e3710be77e1dbb8880acf8a5543d82",
"name": "README.txt", "name": "README.txt",
"type": "blob", "type": "blob",
}, },
@ -131,9 +131,9 @@ Object {
"type": "tree", "type": "tree",
}, },
}, },
"hash": "c32b1ddc3a622e7a7e30c0b3f56a78eaed19cfab", "hash": "819fc546cea489476ce8dc90785e9ba7753d0a8f",
}, },
"b936e6133d3316250f0a91779f72c72141279941" => Object { "569e1d383759903134df75230d63c0090196d4cb" => Object {
"entries": Map { "entries": Map {
".gitmodules" => Object { ".gitmodules" => Object {
"hash": "8c6cac301e763aa6d36466e0a775eb804be2c311", "hash": "8c6cac301e763aa6d36466e0a775eb804be2c311",
@ -141,7 +141,7 @@ Object {
"type": "blob", "type": "blob",
}, },
"README.txt" => Object { "README.txt" => Object {
"hash": "6e70bfb555b270a017c743df4cd7d35d5337e0ef", "hash": "0fb31858c8e3710be77e1dbb8880acf8a5543d82",
"name": "README.txt", "name": "README.txt",
"type": "blob", "type": "blob",
}, },
@ -166,9 +166,9 @@ Object {
"type": "tree", "type": "tree",
}, },
}, },
"hash": "b936e6133d3316250f0a91779f72c72141279941", "hash": "569e1d383759903134df75230d63c0090196d4cb",
}, },
"e5e3b135d4f7d03e9906aead28c7757aa2b676bd" => Object { "3dfb84795e07341b05fad3a0d5a55f8304b2d7d8" => Object {
"entries": Map { "entries": Map {
".gitmodules" => Object { ".gitmodules" => Object {
"hash": "8c6cac301e763aa6d36466e0a775eb804be2c311", "hash": "8c6cac301e763aa6d36466e0a775eb804be2c311",
@ -176,7 +176,7 @@ Object {
"type": "blob", "type": "blob",
}, },
"README.txt" => Object { "README.txt" => Object {
"hash": "6e70bfb555b270a017c743df4cd7d35d5337e0ef", "hash": "0fb31858c8e3710be77e1dbb8880acf8a5543d82",
"name": "README.txt", "name": "README.txt",
"type": "blob", "type": "blob",
}, },
@ -191,12 +191,12 @@ Object {
"type": "blob", "type": "blob",
}, },
}, },
"hash": "e5e3b135d4f7d03e9906aead28c7757aa2b676bd", "hash": "3dfb84795e07341b05fad3a0d5a55f8304b2d7d8",
}, },
"5822dfcc81bf3ef8f99f68a21a33d07386fbd7b8" => Object { "2f7155e359fd0ecb96ffdca66fa45b6ed5792809" => Object {
"entries": Map { "entries": Map {
"README.txt" => Object { "README.txt" => Object {
"hash": "6e70bfb555b270a017c743df4cd7d35d5337e0ef", "hash": "0fb31858c8e3710be77e1dbb8880acf8a5543d82",
"name": "README.txt", "name": "README.txt",
"type": "blob", "type": "blob",
}, },
@ -206,17 +206,17 @@ Object {
"type": "blob", "type": "blob",
}, },
}, },
"hash": "5822dfcc81bf3ef8f99f68a21a33d07386fbd7b8", "hash": "2f7155e359fd0ecb96ffdca66fa45b6ed5792809",
}, },
"79ee2359849733d6a51fd1b5da1cebdbaa29254f" => Object { "bdff5d94193170015d6cbb549b7b630649428b1f" => Object {
"entries": Map { "entries": Map {
"README.txt" => Object { "README.txt" => Object {
"hash": "6e70bfb555b270a017c743df4cd7d35d5337e0ef", "hash": "0fb31858c8e3710be77e1dbb8880acf8a5543d82",
"name": "README.txt", "name": "README.txt",
"type": "blob", "type": "blob",
}, },
}, },
"hash": "79ee2359849733d6a51fd1b5da1cebdbaa29254f", "hash": "bdff5d94193170015d6cbb549b7b630649428b1f",
}, },
"78fc9c83023386854c6bfdc5761c0e58f68e226f" => Object { "78fc9c83023386854c6bfdc5761c0e58f68e226f" => Object {
"entries": Map { "entries": Map {
@ -255,12 +255,12 @@ Object {
exports[`loadRepository processes an old commit 1`] = ` exports[`loadRepository processes an old commit 1`] = `
Object { Object {
"commits": Set { "commits": Set {
"db7608c2b4eba9ca72c6e3d636a7795cf9bcb97d", "c08ee3a4edea384d5291ffcbf06724a13ed72325",
"486bb61573b09069dc9a55023b06e72049f8556d", "c2b51945e7457546912a8ce158ed9d294558d294",
}, },
"trees": Set { "trees": Set {
"5822dfcc81bf3ef8f99f68a21a33d07386fbd7b8", "2f7155e359fd0ecb96ffdca66fa45b6ed5792809",
"79ee2359849733d6a51fd1b5da1cebdbaa29254f", "bdff5d94193170015d6cbb549b7b630649428b1f",
}, },
} }
`; `;

View File

@ -2,13 +2,13 @@
exports[`createExampleRepo is deterministic 1`] = ` exports[`createExampleRepo is deterministic 1`] = `
Array [ Array [
"486bb61573b09069dc9a55023b06e72049f8556d", "c2b51945e7457546912a8ce158ed9d294558d294",
"db7608c2b4eba9ca72c6e3d636a7795cf9bcb97d", "c08ee3a4edea384d5291ffcbf06724a13ed72325",
"849572148969b2c3480e8479604ccba3b189092a", "8d287c3bfbf8455ef30187bf5153ffc1b6eef268",
"fb67eef11f7f34e4ad530ce36624c47fef0cd2e2", "d160cca97611e9dfed642522ad44408d0292e8ea",
"d6693032379c8c55aafc72ad355db29ce71396b0", "e8b7a8f19701cd5a25e4a097d513ead60e5f8bcc",
"1468ff8437299dc4aa426996784be30a87226007", "69c5aad50eec8f2a0a07c988c3b283a6490eb45b",
"3507b7c8690e329477c76b73f8511f78fdbafe52", "3715ddfb8d4c4fd2a6f6af75488c82f84c92ec2f",
] ]
`; `;

View File

@ -48,7 +48,7 @@ export function createExampleRepo(intoDirectory: string): RepositoryInfo {
"-----------\n\n", "-----------\n\n",
"This repository provides example data for the SourceCred Git plugin.\n", "This repository provides example data for the SourceCred Git plugin.\n",
"Pay no attention to the contents behind the curtain.\n", "Pay no attention to the contents behind the curtain.\n",
].join() ].join("")
); );
commit("Initial commit"); commit("Initial commit");