{"thread":{"id":"432","subject":"[PATCH] git-export complains about mising cat-file","startedAt":"2005-05-02T04:07:02Z","lastAt":"2005-05-02T04:07:02Z","messageCount":1,"participants":["Alexey Nezhdanov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"2355","messageId":"E1DSSD0-00018G-2M@home2","threadId":"432","inReplyTo":null,"subject":"[PATCH] git-export complains about mising cat-file","fromName":"Alexey Nezhdanov","fromEmail":"snake@penza-gsm.ru","sentAt":"2005-05-02T04:07:02Z","receivedAt":"2005-05-02T04:07:02Z","isPatch":true,"sender":{"key":"snake@penza-gsm.ru","avatar":null},"body":"\nFixes bits leaved during name change.\n\nSigned-off-by: Alexey Nezhdanov <snake@penza-gsm.ru>\n\n---\n\n--- k/cat-file.c\n+++ l/cat-file.c\n@@ -13,7 +13,7 @@ int main(int argc, char **argv)\n \tunsigned long size;\n \n \tif (argc != 3 || get_sha1(argv[2], sha1))\n-\t\tusage(\"cat-file [-t | tagname] <sha1>\");\n+\t\tusage(\"git-cat-file [-t | tagname] <sha1>\");\n \n \tif (!strcmp(\"-t\", argv[1])) {\n \t\tbuf = read_sha1_file(sha1, type, &size);\n@@ -28,7 +28,7 @@ int main(int argc, char **argv)\n \t}\n \n \tif (!buf)\n-\t\tdie(\"cat-file %s: bad file\", argv[2]);\n+\t\tdie(\"git-cat-file %s: bad file\", argv[2]);\n \n \twhile (size > 0) {\n \t\tlong ret = write(1, buf, size);\n@@ -38,9 +38,9 @@ int main(int argc, char **argv)\n \t\t\t/* Ignore epipe */\n \t\t\tif (errno == EPIPE)\n \t\t\t\tbreak;\n-\t\t\tdie(\"cat-file: %s\", strerror(errno));\n+\t\t\tdie(\"git-cat-file: %s\", strerror(errno));\n \t\t} else if (!ret) {\n-\t\t\tdie(\"cat-file: disk full?\");\n+\t\t\tdie(\"git-cat-file: disk full?\");\n \t\t}\n \t\tsize -= ret;\n \t\tbuf += ret;\n--- k/export.c\n+++ l/export.c\n@@ -12,7 +12,7 @@ void show_commit(struct commit *commit)\n \tstrcpy(hex, sha1_to_hex(commit->object.sha1));\n \tprintf(\"Id: %s\\n\", hex);\n \tfflush(NULL);\n-\tsprintf(cmdline, \"cat-file commit %s\", hex);\n+\tsprintf(cmdline, \"git-cat-file commit %s\", hex);\n \tsystem(cmdline);\n \tif (commit->parents) {\n \t\tchar *against = sha1_to_hex(commit->parents->item->object.sha1);\n\n\n"}]}