{"thread":{"id":"197","subject":"[PATCH] Missing quotes","startedAt":"2005-04-21T12:45:45Z","lastAt":"2005-04-21T12:45:45Z","messageCount":1,"participants":["Matthias Urlichs"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"1122","messageId":"20050421124545.AEED67F898@smurf.noris.de","threadId":"197","inReplyTo":null,"subject":"[PATCH] Missing quotes","fromName":"Matthias Urlichs","fromEmail":"smurf@smurf.noris.de","sentAt":"2005-04-21T12:45:45Z","receivedAt":"2005-04-21T12:45:45Z","isPatch":true,"sender":{"key":"matthias@urlichs.de","avatar":"https://gravatar.com/avatar/2708905af227313eba6f2b2ae0f7d0259b5ac5d71baef58fe5a13c699ce0bbf0?d=mp&s=160"},"body":"gitXnormid.sh should quote its cat-file calls so that nonexisting ssha1\nIDs don't result in shell errors.\n\nSigned-Off-By: Matthias Urlichs <smurf@smurf.noris.de>\n\n--- 42a073eb6b5bb397a3e8768a032463a7fa02e6b9/gitXnormid.sh  (mode:100755 sha1:c0d53afabe8662ebfc3c697faf08b0a2b43c93f7)\n+++ 265515f9c4f089b1b61e9d2312c4b3babe189618/gitXnormid.sh  (mode:100644 sha1:94710a7a2ab945f1fbd5350cb0de15171ae3f582)\n@@ -41,11 +41,11 @@\n \texit 1\n fi\n \n-if [ \"$type\" = \"tree\" ] && [ $(cat-file -t \"$id\") = \"commit\" ]; then\n+if [ \"$type\" = \"tree\" ] && [ \"$(cat-file -t \"$id\")\" = \"commit\" ]; then\n \tid=$(cat-file commit $id | egrep \"$TREE\" | cut -d ' ' -f 2)\n fi\n \n-if [ $(cat-file -t \"$id\") != \"$type\" ]; then\n+if [ \"$(cat-file -t \"$id\")\" != \"$type\" ]; then\n \techo \"Invalid id: $id\" >&2\n \texit 1\n fi\n"}]}