{"thread":{"id":"15799","subject":"Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)","startedAt":"2008-10-06T14:00:58Z","lastAt":"2008-10-07T16:49:34Z","messageCount":3,"participants":["Jeff Kowalczyk","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"92404","messageId":"pan.2008.10.06.14.00.57.104051@yahoo.com","threadId":"15799","inReplyTo":null,"subject":"Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)","fromName":"Jeff Kowalczyk","fromEmail":"jtk@yahoo.com","sentAt":"2008-10-06T14:00:58Z","receivedAt":"2008-10-06T14:00:58Z","isPatch":false,"sender":{"key":"jtk@yahoo.com","avatar":null},"body":"To test a particular upstream revision, on a git svn remote checkout (i.e.\nbranches/1.2, 76c7af2...), I checked out the equivalent of HEAD^^ (git\ncheckout 4a3d99c0c9).\n\nNow back at the branch tip, I get fatal: ref HEAD is not a symbolic ref\non git svn rebase: \n\n(4a3d99c...) $ git checkout 76c7af2\nHEAD is now at 76c7af2... Minor changes to CONTRIBUTORS\n(76c7af2...) $ git svn rebase\nfatal: ref HEAD is not a symbolic ref Current branch HEAD is up to date.\nSegmentation fault\n\nHow can I manually correct ref HEAD?\n\nThanks.\n\n(The segmentation fault is a separate issue)\n"},{"id":"92405","messageId":"20081006140243.GB8203@spearce.org","threadId":"15799","inReplyTo":"pan.2008.10.06.14.00.57.104051@yahoo.com","subject":"Re: Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-10-06T14:02:43Z","receivedAt":"2008-10-06T14:02:43Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Jeff Kowalczyk <jtk@yahoo.com> wrote:\n> To test a particular upstream revision, on a git svn remote checkout (i.e.\n> branches/1.2, 76c7af2...), I checked out the equivalent of HEAD^^ (git\n> checkout 4a3d99c0c9).\n> \n> Now back at the branch tip, I get fatal: ref HEAD is not a symbolic ref\n> on git svn rebase: \n> \n> (4a3d99c...) $ git checkout 76c7af2\n> HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS\n> (76c7af2...) $ git svn rebase\n> fatal: ref HEAD is not a symbolic ref Current branch HEAD is up to date.\n> Segmentation fault\n> \n> How can I manually correct ref HEAD?\n\ngit checkout whateverbranchyouwereonbefore\ngit svn rebase\n\n-- \nShawn.\n"},{"id":"92546","messageId":"pan.2008.10.07.16.49.29.153703@yahoo.com","threadId":"15799","inReplyTo":"20081006140243.GB8203@spearce.org","subject":"Re: Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)","fromName":"Jeff Kowalczyk","fromEmail":"jtk@yahoo.com","sentAt":"2008-10-07T16:49:34Z","receivedAt":"2008-10-07T16:49:34Z","isPatch":false,"sender":{"key":"jtk@yahoo.com","avatar":null},"body":"On Mon, 06 Oct 2008 07:02:43 -0700, Shawn O. Pearce wrote:\n\n> Jeff Kowalczyk <jtk@yahoo.com> wrote:\n>> To test a particular upstream revision, on a git svn remote checkout (i.e.\n>> branches/1.2, 76c7af2...), I checked out the equivalent of HEAD^^ (git\n>> checkout 4a3d99c0c9).\n>> \n>> Now back at the branch tip, I get fatal: ref HEAD is not a symbolic ref\n>> on git svn rebase: \n>> \n>> (4a3d99c...) $ git checkout 76c7af2\n>> HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS\n>> (76c7af2...) $ git svn rebase\n>> fatal: ref HEAD is not a symbolic ref Current branch HEAD is up to date.\n>> Segmentation fault\n>> \n>> How can I manually correct ref HEAD?\n> \n> git checkout whateverbranchyouwereonbefore\n> git svn rebase\n\nThanks, and the other svn remotes are working fine. I still have the\nproblem on the svn remote 'branches/1.2'. The following illustrates:\n\n  (1.2_mybranch) $ git checkout 1.2\n  Note: moving to \"1.2\" which isn't a local branch\n  If you want to create a new branch from this checkout, you may do so\n  (now or later) by using -b with the checkout command again. Example:\n    git checkout -b <new_branch_name>\n  HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS\n\n  (76c7af2...) $ git svn fetch\n  \tM\tCONTRIBUTORS\n  \tM\tLedgerSMB/AM.pm\n  r2353 = ddd452af128f9b4698a1c1d6cc7fe2f23a0e6c90 (1.2)\n  \tM\tLedgerSMB/AM.pm\n  r2354 = fc6857004eeabf6963a9b2856f51db8842c00b70 (1.2)\n  Segmentation fault\n\n  (fc68570...) $ git checkout 1.2_print_pdf_default \n  Previous HEAD position was fc68570... (commit message snip)\n  Switched to branch \"1.2_print_pdf_default\"\n\n  (1.2_print_pdf_default) $ git svn rebase\n  First, rewinding head to replay your work on top of it...\n  Applying: naive replacement to option selected value=\"pdf\" where PDF is format option,\n  Segmentation fault\n\n  (76c7af2...) $ git svn rebase\n  fatal: ref HEAD is not a symbolic ref\n  First, rewinding head to replay your work on top of it...\n  Fast-forwarded HEAD to refs/remotes/1.2.\n  Segmentation fault\n\n\nThis last git svn rebase on 'branches/1.2' (whether it's correct procedure\nor not for a svn remote) used to work without the error until I issued\nthat one command (git checkout 4a3d99c0c9).\n\nThanks for any suggestions.\n"}]}