{"thread":{"id":"11251","subject":"exit with error for \"git remote update\"","startedAt":"2007-12-12T06:17:22Z","lastAt":"2007-12-12T06:17:22Z","messageCount":1,"participants":["Robert Schiele"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"62860","messageId":"20071212061722.GI4167@schiele.dyndns.org","threadId":"11251","inReplyTo":null,"subject":"exit with error for \"git remote update\"","fromName":"Robert Schiele","fromEmail":"rschiele@gmail.com","sentAt":"2007-12-12T06:17:22Z","receivedAt":"2007-12-12T06:17:22Z","isPatch":false,"sender":{"key":"rschiele@gmail.com","avatar":"https://gravatar.com/avatar/409473567eb2287d5f0157b51f5b703994b347f24f92172e3a0588741c27a492?d=mp&s=160"},"body":"Hi,\n\nWhen I call \"git remote update\" without an additional parameter it always\nreturns with an error, even when all fetch commands processed without a\nproblem.\n\nThis is because of the exit(1) in the following code:\n\nelsif ($ARGV[0] eq 'update') {\n        if (@ARGV <= 1) {\n                update_remote(\"default\");\n                exit(1);\n        }\n        for ($i = 1; $i < @ARGV; $i++) {\n                update_remote($ARGV[$i]);\n        }\n}\n\nShouldn't this exit(1) be an exit(0) instead or just rewrite this part of the\ncode as\n\nelsif ($ARGV[0] eq 'update') {\n        if (@ARGV <= 1) {\n                update_remote(\"default\");\n        } else {\n                for ($i = 1; $i < @ARGV; $i++) {\n                        update_remote($ARGV[$i]);\n                }\n        }\n}\n\nRobert\n\n-- \nRobert Schiele\nDipl.-Wirtsch.informatiker\tmailto:rschiele@gmail.com\n\n\"Quidquid latine dictum sit, altum sonatur.\"\n"}]}