* Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)
@ 2008-10-06 14:00 Jeff Kowalczyk
2008-10-06 14:02 ` Shawn O. Pearce
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Kowalczyk @ 2008-10-06 14:00 UTC (permalink / raw)
To: git
To test a particular upstream revision, on a git svn remote checkout (i.e.
branches/1.2, 76c7af2...), I checked out the equivalent of HEAD^^ (git
checkout 4a3d99c0c9).
Now back at the branch tip, I get fatal: ref HEAD is not a symbolic ref
on git svn rebase:
(4a3d99c...) $ git checkout 76c7af2
HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS
(76c7af2...) $ git svn rebase
fatal: ref HEAD is not a symbolic ref Current branch HEAD is up to date.
Segmentation fault
How can I manually correct ref HEAD?
Thanks.
(The segmentation fault is a separate issue)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)
2008-10-06 14:00 Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote) Jeff Kowalczyk
@ 2008-10-06 14:02 ` Shawn O. Pearce
2008-10-07 16:49 ` Jeff Kowalczyk
0 siblings, 1 reply; 3+ messages in thread
From: Shawn O. Pearce @ 2008-10-06 14:02 UTC (permalink / raw)
To: Jeff Kowalczyk; +Cc: git
Jeff Kowalczyk <jtk@yahoo.com> wrote:
> To test a particular upstream revision, on a git svn remote checkout (i.e.
> branches/1.2, 76c7af2...), I checked out the equivalent of HEAD^^ (git
> checkout 4a3d99c0c9).
>
> Now back at the branch tip, I get fatal: ref HEAD is not a symbolic ref
> on git svn rebase:
>
> (4a3d99c...) $ git checkout 76c7af2
> HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS
> (76c7af2...) $ git svn rebase
> fatal: ref HEAD is not a symbolic ref Current branch HEAD is up to date.
> Segmentation fault
>
> How can I manually correct ref HEAD?
git checkout whateverbranchyouwereonbefore
git svn rebase
--
Shawn.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)
2008-10-06 14:02 ` Shawn O. Pearce
@ 2008-10-07 16:49 ` Jeff Kowalczyk
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Kowalczyk @ 2008-10-07 16:49 UTC (permalink / raw)
To: git
On Mon, 06 Oct 2008 07:02:43 -0700, Shawn O. Pearce wrote:
> Jeff Kowalczyk <jtk@yahoo.com> wrote:
>> To test a particular upstream revision, on a git svn remote checkout (i.e.
>> branches/1.2, 76c7af2...), I checked out the equivalent of HEAD^^ (git
>> checkout 4a3d99c0c9).
>>
>> Now back at the branch tip, I get fatal: ref HEAD is not a symbolic ref
>> on git svn rebase:
>>
>> (4a3d99c...) $ git checkout 76c7af2
>> HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS
>> (76c7af2...) $ git svn rebase
>> fatal: ref HEAD is not a symbolic ref Current branch HEAD is up to date.
>> Segmentation fault
>>
>> How can I manually correct ref HEAD?
>
> git checkout whateverbranchyouwereonbefore
> git svn rebase
Thanks, and the other svn remotes are working fine. I still have the
problem on the svn remote 'branches/1.2'. The following illustrates:
(1.2_mybranch) $ git checkout 1.2
Note: moving to "1.2" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
git checkout -b <new_branch_name>
HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS
(76c7af2...) $ git svn fetch
M CONTRIBUTORS
M LedgerSMB/AM.pm
r2353 = ddd452af128f9b4698a1c1d6cc7fe2f23a0e6c90 (1.2)
M LedgerSMB/AM.pm
r2354 = fc6857004eeabf6963a9b2856f51db8842c00b70 (1.2)
Segmentation fault
(fc68570...) $ git checkout 1.2_print_pdf_default
Previous HEAD position was fc68570... (commit message snip)
Switched to branch "1.2_print_pdf_default"
(1.2_print_pdf_default) $ git svn rebase
First, rewinding head to replay your work on top of it...
Applying: naive replacement to option selected value="pdf" where PDF is format option,
Segmentation fault
(76c7af2...) $ git svn rebase
fatal: ref HEAD is not a symbolic ref
First, rewinding head to replay your work on top of it...
Fast-forwarded HEAD to refs/remotes/1.2.
Segmentation fault
This last git svn rebase on 'branches/1.2' (whether it's correct procedure
or not for a svn remote) used to work without the error until I issued
that one command (git checkout 4a3d99c0c9).
Thanks for any suggestions.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-07 16:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 14:00 Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote) Jeff Kowalczyk
2008-10-06 14:02 ` Shawn O. Pearce
2008-10-07 16:49 ` Jeff Kowalczyk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).