{"thread":{"id":"13270","subject":"[PATCH] Improve git bisect error message","startedAt":"2008-04-26T13:39:38Z","lastAt":"2008-04-26T18:53:00Z","messageCount":2,"participants":["Andi Kleen","Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"75220","messageId":"20080426133937.GA27677@basil.nowhere.org","threadId":"13270","inReplyTo":null,"subject":"[PATCH] Improve git bisect error message","fromName":"Andi Kleen","fromEmail":"andi@firstfloor.org","sentAt":"2008-04-26T13:39:38Z","receivedAt":"2008-04-26T13:39:38Z","isPatch":true,"sender":{"key":"andi@firstfloor.org","avatar":null},"body":"\nIt took me some time to figure out what this error message meant and\nhow to fix the problem.  So let's improve it a little.\n\n-Andi\n\n--- git-1.5.4/git-bisect~\t2008-02-09 13:37:16.000000000 +0100\n+++ git-1.5.4/git-bisect\t2008-04-26 01:26:19.000000000 +0200\n@@ -71,7 +71,10 @@\n \t\tgit checkout $branch || exit\n \t\t;;\n \trefs/heads/*)\n-\t\t[ -s \"$GIT_DIR/head-name\" ] && die \"won't bisect on seeked tree\"\n+\t\tif [ -s \"$GIT_DIR/head-name\" ] ; then\n+\t\t\techo >&2 \"Please run git bisect reset\"\n+\t\t\tdie \"won't bisect on seeked tree\"\n+\t\tfi\n \t\techo \"${head#refs/heads/}\" >\"$GIT_DIR/head-name\"\n \t\t;;\n \t*)\n"},{"id":"75230","messageId":"200804262053.00709.chriscool@tuxfamily.org","threadId":"13270","inReplyTo":"20080426133937.GA27677@basil.nowhere.org","subject":"Re: [PATCH] Improve git bisect error message","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2008-04-26T18:53:00Z","receivedAt":"2008-04-26T18:53:00Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Le samedi 26 avril 2008, Andi Kleen a écrit :\n> It took me some time to figure out what this error message meant and\n> how to fix the problem.  So let's improve it a little.\n\nIt is very much appreciated that you report a problem and moreover provide a \npatch.\n\n> --- git-1.5.4/git-bisect~\t2008-02-09 13:37:16.000000000 +0100\n> +++ git-1.5.4/git-bisect\t2008-04-26 01:26:19.000000000 +0200\n\nUnfortunately in this case it seems that your git version is too old and the \nproblem may have been fixed in newer versions.\n\nSee:\n\nhttp://git.kernel.org/?p=git/git.git;a=commit;h=0f497e75f05cdf0c0c1278eaba898cda6f118d71\nhttp://git.kernel.org/?p=git/git.git;a=commit;h=b577bb925e745845155c6f51eae841c339ce68f6\n\nSo I think you should upgrade to git 1.5.5.1 and if possible tell us if you \nstill get the same error message. \n\nThanks,\nChristian.\n"}]}