{"thread":{"id":"16594","subject":"git rebase --continue with goofy error","startedAt":"2008-12-04T14:55:55Z","lastAt":"2008-12-04T17:43:51Z","messageCount":6,"participants":["Adrian Klingel","Björn Steinbrink","Michael J Gruber","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"97147","messageId":"5AC243B6-F048-4286-80E1-1D0E695792B9@illumaware.com","threadId":"16594","inReplyTo":null,"subject":"git rebase --continue with goofy error","fromName":"Adrian Klingel","fromEmail":"adrian.klingel@illumaware.com","sentAt":"2008-12-04T14:55:55Z","receivedAt":"2008-12-04T14:55:55Z","isPatch":false,"sender":{"key":"adrian.klingel@illumaware.com","avatar":null},"body":"I am trying so, so hard to rebase a branch with updates made in master:\n\n*********\ngit rebase master\n*********\n\nI get about 20 conflicts back, which I fix and do:\n\n*********\ngit add *\n*********\n\nThere were also many, many error messages after the rebase command, eg:\n\n*********\nerror: test/unit/missing_year_test.rb: already exists in index\nerror: test/unit/axle_test.rb: already exists in index\nerror: test/unit/body_style_test.rb: already exists in index\nerror: test/unit/brake_test.rb: already exists in index\nerror: test/unit/category_test.rb: already exists in index\nerror: test/unit/comment_test.rb: already exists in index\nerror: test/unit/company_comment_test.rb: does not exist in index\nerror: test/unit/country_test.rb: already exists in index\n*********\n\n\nbut I ignore that error, because I have no idea what it means.  If I  \nwere to guess, I'd say it's trying to copy files from master to my  \ncurrent branch.  Of course.\n\nSo now I have added my conflict fixes, per the message:\n\n*********\nFailed to merge in the changes.\nPatch failed at 0002.\n\nWhen you have resolved this problem run \"git rebase --continue\".\nIf you would prefer to skip this patch, instead run \"git rebase --skip\".\nTo restore the original branch and stop rebasing run \"git rebase -- \nabort\".\n*********\n\n\nSo I decide to continue:\n\n*********\ngit rebase --continue\n*********\n\n\nAnd I get the following:\n\n*********\nmymac:/Library/mydir/code/myapp me$ git rebase --continue\nUnknown option: 1\nUsage: head [-options] <url>...\n     -m <method>   use method for the request (default is 'HEAD')\n     -f            make request even if head believes method is illegal\n     -b <base>     Use the specified URL as base\n     -t <timeout>  Set timeout value\n     -i <time>     Set the If-Modified-Since header on the request\n     -c <conttype> use this content-type for POST, PUT, CHECKIN\n     -a            Use text mode for content I/O\n     -p <proxyurl> use this as a proxy\n     -P            don't load proxy settings from environment\n     -H <header>   send this HTTP header (you can specify several)\n\n     -u            Display method and URL before any response\n     -U            Display request headers (implies -u)\n     -s            Display response status code\n     -S            Display response status chain\n     -e            Display response headers\n     -d            Do not display content\n     -o <format>   Process HTML content in various ways\n\n     -v            Show program version\n     -h            Print this message\n\n     -x            Extra debugging output\nApplying\nYou still have unmerged paths in your index\ndid you forget to use 'git add'?\n\nWhen you have resolved this problem run \"git rebase --continue\".\nIf you would prefer to skip this patch, instead run \"git rebase --skip\".\nTo restore the original branch and stop rebasing run \"git rebase -- \nabort\".\n\n*********\n\n\nA google search of \"git\" and \"Unknown option: 1\" yields zero  \nresults.  Notice I did not commit the adds.  I didn't think it made  \nsense to do that, since I imagine that is what the rebase is doing  \nanyway?\n\nThis is on git version 1.5.5.3.\n\nShould I upgrade git?  Will that break any repos that I have?\n\nThanks very, very much.\n"},{"id":"97150","messageId":"49EAD7F5-F087-4674-9046-47DDD6F96CB2@illumaware.com","threadId":"16594","inReplyTo":"9F631552-BA29-4A85-9A85-2992232CDDE6@railsnewbie.com","subject":"Re: git rebase --continue with goofy error","fromName":"Adrian Klingel","fromEmail":"adrian.klingel@illumaware.com","sentAt":"2008-12-04T16:24:37Z","receivedAt":"2008-12-04T16:24:37Z","isPatch":false,"sender":{"key":"adrian.klingel@illumaware.com","avatar":null},"body":"That's the problem.  I've resolved the conflicts, added everything.   \nThen I run git rebase --continue and that's what I get.  After I do  \nthe adds, am I supposed to commit them?\n\nAdrian Klingel\nPresident/CEO\nIllumaware, LLC\n\nAdrian.Klingel@illumaware.com\nphone:  800.880.4964\noutside US: 919.783.4037\nfax: 919-882.9447\n\n\n\n\nOn Dec 4, 2008, at 10:52 AM, Scott Taylor wrote:\n\n>\n> On Dec 4, 2008, at 9:55 AM, Adrian Klingel wrote:\n>\n>> I am trying so, so hard to rebase a branch with updates made in  \n>> master:\n>>\n>> *********\n>> git rebase master\n>> *********\n>>\n>> I get about 20 conflicts back, which I fix and do:\n>>\n>> *********\n>> git add *\n>> *********\n>>\n>> There were also many, many error messages after the rebase  \n>> command, eg:\n>>\n>> *********\n>> error: test/unit/missing_year_test.rb: already exists in index\n>> error: test/unit/axle_test.rb: already exists in index\n>> error: test/unit/body_style_test.rb: already exists in index\n>> error: test/unit/brake_test.rb: already exists in index\n>> error: test/unit/category_test.rb: already exists in index\n>> error: test/unit/comment_test.rb: already exists in index\n>> error: test/unit/company_comment_test.rb: does not exist in index\n>> error: test/unit/country_test.rb: already exists in index\n>> *********\n>>\n>>\n>> but I ignore that error, because I have no idea what it means.  If  \n>> I were to guess, I'd say it's trying to copy files from master to  \n>> my current branch.  Of course.\n>>\n>> So now I have added my conflict fixes, per the message:\n>>\n>> *********\n>> Failed to merge in the changes.\n>> Patch failed at 0002.\n>>\n>> When you have resolved this problem run \"git rebase --continue\".\n>> If you would prefer to skip this patch, instead run \"git rebase -- \n>> skip\".\n>> To restore the original branch and stop rebasing run \"git rebase -- \n>> abort\".\n>> *********\n>>\n>>\n>> So I decide to continue:\n>>\n>> *********\n>> git rebase --continue\n>> *********\n>>\n>>\n>> And I get the following:\n>>\n>> *********\n>> mymac:/Library/mydir/code/myapp me$ git rebase --continue\n>> Unknown option: 1\n>> Usage: head [-options] <url>...\n>>    -m <method>   use method for the request (default is 'HEAD')\n>>    -f            make request even if head believes method is illegal\n>>    -b <base>     Use the specified URL as base\n>>    -t <timeout>  Set timeout value\n>>    -i <time>     Set the If-Modified-Since header on the request\n>>    -c <conttype> use this content-type for POST, PUT, CHECKIN\n>>    -a            Use text mode for content I/O\n>>    -p <proxyurl> use this as a proxy\n>>    -P            don't load proxy settings from environment\n>>    -H <header>   send this HTTP header (you can specify several)\n>>\n>>    -u            Display method and URL before any response\n>>    -U            Display request headers (implies -u)\n>>    -s            Display response status code\n>>    -S            Display response status chain\n>>    -e            Display response headers\n>>    -d            Do not display content\n>>    -o <format>   Process HTML content in various ways\n>>\n>>    -v            Show program version\n>>    -h            Print this message\n>>\n>>    -x            Extra debugging output\n>> Applying\n>> You still have unmerged paths in your index\n>> did you forget to use 'git add'?\n>>\n>> When you have resolved this problem run \"git rebase --continue\".\n>> If you would prefer to skip this patch, instead run \"git rebase -- \n>> skip\".\n>> To restore the original branch and stop rebasing run \"git rebase -- \n>> abort\".\n>>\n>> *********\n>>\n>>\n>> A google search of \"git\" and \"Unknown option: 1\" yields zero  \n>> results.  Notice I did not commit the adds.  I didn't think it  \n>> made sense to do that, since I imagine that is what the rebase is  \n>> doing anyway?\n>>\n>\n> I'm not sure what the first part of this is saying (The \"unknown  \n> option\").\n>\n> The important part is later on:\n>\n> You still have unmerged paths in your index\n> did you forget to use 'git add'?\n>\n> After you resolve any conflicts, make sure to git add any remaining  \n> files before you \"rebase --continue\"\n>\n> Regards,\n>\n> Scott\n>\n>\n"},{"id":"97151","messageId":"20081204162757.GA23360@atjola.homenet","threadId":"16594","inReplyTo":"5AC243B6-F048-4286-80E1-1D0E695792B9@illumaware.com","subject":"Re: git rebase --continue with goofy error","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-12-04T16:27:57Z","receivedAt":"2008-12-04T16:27:57Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.12.04 09:55:55 -0500, Adrian Klingel wrote:\n> And I get the following:\n>\n> *********\n> mymac:/Library/mydir/code/myapp me$ git rebase --continue\n> Unknown option: 1\n> Usage: head [-options] <url>...\n>     -m <method>   use method for the request (default is 'HEAD')\n>     -f            make request even if head believes method is illegal\n>     -b <base>     Use the specified URL as base\n>     -t <timeout>  Set timeout value\n>     -i <time>     Set the If-Modified-Since header on the request\n>     -c <conttype> use this content-type for POST, PUT, CHECKIN\n>     -a            Use text mode for content I/O\n>     -p <proxyurl> use this as a proxy\n>     -P            don't load proxy settings from environment\n>     -H <header>   send this HTTP header (you can specify several)\n>\n>     -u            Display method and URL before any response\n>     -U            Display request headers (implies -u)\n>     -s            Display response status code\n>     -S            Display response status chain\n>     -e            Display response headers\n>     -d            Do not display content\n>     -o <format>   Process HTML content in various ways\n>\n>     -v            Show program version\n>     -h            Print this message\n>\n>     -x            Extra debugging output\n\nThat comes via git-am which used to call \"head -1\", but using -<n> is\ndeprecated and apparently not supported anymore by modern versions of\ncoreutils. Was fixed in:\n\n1d9b2656: git-am: head -1 is obsolete and doesn't work on some new systems\n\nWhich is in git 1.5.6.\n\nBjörn\n"},{"id":"97152","messageId":"49380639.3010508@drmicha.warpmail.net","threadId":"16594","inReplyTo":"5AC243B6-F048-4286-80E1-1D0E695792B9@illumaware.com","subject":"Re: git rebase --continue with goofy error","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2008-12-04T16:32:57Z","receivedAt":"2008-12-04T16:32:57Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Adrian Klingel venit, vidit, dixit 04.12.2008 15:55:\n> I am trying so, so hard to rebase a branch with updates made in master:\n> \n> *********\n> git rebase master\n> *********\n> \n> I get about 20 conflicts back, which I fix and do:\n> \n> *********\n> git add *\n> *********\n> \n> There were also many, many error messages after the rebase command, eg:\n> \n> *********\n> error: test/unit/missing_year_test.rb: already exists in index\n> error: test/unit/axle_test.rb: already exists in index\n> error: test/unit/body_style_test.rb: already exists in index\n> error: test/unit/brake_test.rb: already exists in index\n> error: test/unit/category_test.rb: already exists in index\n> error: test/unit/comment_test.rb: already exists in index\n> error: test/unit/company_comment_test.rb: does not exist in index\n> error: test/unit/country_test.rb: already exists in index\n> *********\n> \n> \n> but I ignore that error, because I have no idea what it means.  If I  \n\nNot a good general approach. If there are errors to begin with there is\nno reason to expect success later on.\n\nHere, I assume you are starting from a dirty working tree. What did git\nstatus say before the rebase?\n\n> were to guess, I'd say it's trying to copy files from master to my  \n> current branch.  Of course.\n> \n> So now I have added my conflict fixes, per the message:\n> \n> *********\n> Failed to merge in the changes.\n> Patch failed at 0002.\n> \n> When you have resolved this problem run \"git rebase --continue\".\n> If you would prefer to skip this patch, instead run \"git rebase --skip\".\n> To restore the original branch and stop rebasing run \"git rebase -- \n> abort\".\n> *********\n\nWhat command triggered that message? It's certainly not saying that you\nhave added your conflict fixes, as you seem to think.\n\n> \n> So I decide to continue:\n> \n> *********\n> git rebase --continue\n> *********\n> \n> \n> And I get the following:\n> \n> *********\n> mymac:/Library/mydir/code/myapp me$ git rebase --continue\n> Unknown option: 1\n> Usage: head [-options] <url>...\n>      -m <method>   use method for the request (default is 'HEAD')\n>      -f            make request even if head believes method is illegal\n>      -b <base>     Use the specified URL as base\n>      -t <timeout>  Set timeout value\n>      -i <time>     Set the If-Modified-Since header on the request\n>      -c <conttype> use this content-type for POST, PUT, CHECKIN\n>      -a            Use text mode for content I/O\n>      -p <proxyurl> use this as a proxy\n>      -P            don't load proxy settings from environment\n>      -H <header>   send this HTTP header (you can specify several)\n> \n>      -u            Display method and URL before any response\n>      -U            Display request headers (implies -u)\n>      -s            Display response status code\n>      -S            Display response status chain\n>      -e            Display response headers\n>      -d            Do not display content\n>      -o <format>   Process HTML content in various ways\n> \n>      -v            Show program version\n>      -h            Print this message\n> \n>      -x            Extra debugging output\n> Applying\n> You still have unmerged paths in your index\n> did you forget to use 'git add'?\n> \n> When you have resolved this problem run \"git rebase --continue\".\n> If you would prefer to skip this patch, instead run \"git rebase --skip\".\n> To restore the original branch and stop rebasing run \"git rebase -- \n> abort\".\n> \n> *********\n> \n> \n> A google search of \"git\" and \"Unknown option: 1\" yields zero  \n> results. \n\nAs the \"Usage: head...\" tells us, the message comes from the command\n\"head\", not from git. (head is used by git-rebase -i)\n\n> Notice I did not commit the adds.  I didn't think it made  \n> sense to do that, since I imagine that is what the rebase is doing  \n> anyway?\n> \n> This is on git version 1.5.5.3.\n> \n> Should I upgrade git?  Will that break any repos that I have?\n\nYes! No!\n\nCheers,\nMichael\n"},{"id":"97154","messageId":"70AE8AF8-9353-442A-A315-047DA176B351@illumaware.com","threadId":"16594","inReplyTo":"49380639.3010508@drmicha.warpmail.net","subject":"Re: git rebase --continue with goofy error","fromName":"Adrian Klingel","fromEmail":"adrian.klingel@illumaware.com","sentAt":"2008-12-04T16:40:55Z","receivedAt":"2008-12-04T16:40:55Z","isPatch":false,"sender":{"key":"adrian.klingel@illumaware.com","avatar":null},"body":"Thanks alot Michael, Scott, and Bjorn.  I will upgrade git.\n\nI found out why my \"git rebase --continue\" was failing.  Do I need to  \nexplicitly add the .dotest directory and contents after each rebase  \nfailure?\n\nAdrian\n\n\nOn Dec 4, 2008, at 11:32 AM, Michael J Gruber wrote:\n\n> Adrian Klingel venit, vidit, dixit 04.12.2008 15:55:\n>> I am trying so, so hard to rebase a branch with updates made in  \n>> master:\n>>\n>> *********\n>> git rebase master\n>> *********\n>>\n>> I get about 20 conflicts back, which I fix and do:\n>>\n>> *********\n>> git add *\n>> *********\n>>\n>> There were also many, many error messages after the rebase  \n>> command, eg:\n>>\n>> *********\n>> error: test/unit/missing_year_test.rb: already exists in index\n>> error: test/unit/axle_test.rb: already exists in index\n>> error: test/unit/body_style_test.rb: already exists in index\n>> error: test/unit/brake_test.rb: already exists in index\n>> error: test/unit/category_test.rb: already exists in index\n>> error: test/unit/comment_test.rb: already exists in index\n>> error: test/unit/company_comment_test.rb: does not exist in index\n>> error: test/unit/country_test.rb: already exists in index\n>> *********\n>>\n>>\n>> but I ignore that error, because I have no idea what it means.  If I\n>\n> Not a good general approach. If there are errors to begin with  \n> there is\n> no reason to expect success later on.\n>\n> Here, I assume you are starting from a dirty working tree. What did  \n> git\n> status say before the rebase?\n>\n>> were to guess, I'd say it's trying to copy files from master to my\n>> current branch.  Of course.\n>>\n>> So now I have added my conflict fixes, per the message:\n>>\n>> *********\n>> Failed to merge in the changes.\n>> Patch failed at 0002.\n>>\n>> When you have resolved this problem run \"git rebase --continue\".\n>> If you would prefer to skip this patch, instead run \"git rebase -- \n>> skip\".\n>> To restore the original branch and stop rebasing run \"git rebase --\n>> abort\".\n>> *********\n>\n> What command triggered that message? It's certainly not saying that  \n> you\n> have added your conflict fixes, as you seem to think.\n>\n>>\n>> So I decide to continue:\n>>\n>> *********\n>> git rebase --continue\n>> *********\n>>\n>>\n>> And I get the following:\n>>\n>> *********\n>> mymac:/Library/mydir/code/myapp me$ git rebase --continue\n>> Unknown option: 1\n>> Usage: head [-options] <url>...\n>>      -m <method>   use method for the request (default is 'HEAD')\n>>      -f            make request even if head believes method is  \n>> illegal\n>>      -b <base>     Use the specified URL as base\n>>      -t <timeout>  Set timeout value\n>>      -i <time>     Set the If-Modified-Since header on the request\n>>      -c <conttype> use this content-type for POST, PUT, CHECKIN\n>>      -a            Use text mode for content I/O\n>>      -p <proxyurl> use this as a proxy\n>>      -P            don't load proxy settings from environment\n>>      -H <header>   send this HTTP header (you can specify several)\n>>\n>>      -u            Display method and URL before any response\n>>      -U            Display request headers (implies -u)\n>>      -s            Display response status code\n>>      -S            Display response status chain\n>>      -e            Display response headers\n>>      -d            Do not display content\n>>      -o <format>   Process HTML content in various ways\n>>\n>>      -v            Show program version\n>>      -h            Print this message\n>>\n>>      -x            Extra debugging output\n>> Applying\n>> You still have unmerged paths in your index\n>> did you forget to use 'git add'?\n>>\n>> When you have resolved this problem run \"git rebase --continue\".\n>> If you would prefer to skip this patch, instead run \"git rebase -- \n>> skip\".\n>> To restore the original branch and stop rebasing run \"git rebase --\n>> abort\".\n>>\n>> *********\n>>\n>>\n>> A google search of \"git\" and \"Unknown option: 1\" yields zero\n>> results.\n>\n> As the \"Usage: head...\" tells us, the message comes from the command\n> \"head\", not from git. (head is used by git-rebase -i)\n>\n>> Notice I did not commit the adds.  I didn't think it made\n>> sense to do that, since I imagine that is what the rebase is doing\n>> anyway?\n>>\n>> This is on git version 1.5.5.3.\n>>\n>> Should I upgrade git?  Will that break any repos that I have?\n>\n> Yes! No!\n>\n> Cheers,\n> Michael\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"},{"id":"97156","messageId":"alpine.DEB.1.00.0812041842150.7045@racer","threadId":"16594","inReplyTo":"70AE8AF8-9353-442A-A315-047DA176B351@illumaware.com","subject":"Re: git rebase --continue with goofy error","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-12-04T17:43:51Z","receivedAt":"2008-12-04T17:43:51Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 4 Dec 2008, Adrian Klingel wrote:\n\n> I found out why my \"git rebase --continue\" was failing.  Do I need to \n> explicitly add the .dotest directory and contents after each rebase \n> failure?\n\nYou did _what_?\n\nThe directory .dotest/ contains metadata of the rebase.  That you have to \nadd it probably means that your commits contain files in that directory.  \nWhich is bogus.\n\nJust another proof that we were right to move .dotest/ into .git/ (which \nyou will benefit from after an upgrade).\n\nCiao,\nDscho\n"}]}