git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git svn teething problems - initial clone okay - fetches not working
@ 2009-03-23 19:30 Aaron Gray
  2009-03-23 19:43 ` Tim Visher
  2009-03-23 21:03 ` Pascal Obry
  0 siblings, 2 replies; 9+ messages in thread
From: Aaron Gray @ 2009-03-23 19:30 UTC (permalink / raw)
  To: Git Mailing List

Hi,

I am a newbie to git, so be warned :)

I have installed git-daemon, and gitweb on an F10 server.

Basically managed to do a 'git svn clone' on LLVM, it took 11 hours !

Anyway I am having the problem that I can do a 'git svn fetch' and I see 
changes coming in. But the gitweb and another git clone from it do not 
reflect those changes. The repository is still showing its two days old.

I am obviously missing something. The only documentation I could find on 
'git svn' was the command line help and 'man git-svn'.

Hope you can help,

Aaron

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not  working
  2009-03-23 19:30 git svn teething problems - initial clone okay - fetches not working Aaron Gray
@ 2009-03-23 19:43 ` Tim Visher
  2009-03-23 20:02   ` Aaron Gray
  2009-03-23 21:03 ` Pascal Obry
  1 sibling, 1 reply; 9+ messages in thread
From: Tim Visher @ 2009-03-23 19:43 UTC (permalink / raw)
  To: Aaron Gray; +Cc: Git Mailing List

I had a lot of success when I was more actively using `git svn` with
`git svn rebase`.  Just be sure that you're doing your work in local
branches and then merging back into the main trunk branches that are
tracking the svn repo, that way you can always get the latest changes
from your clean trunk branch.

On Mon, Mar 23, 2009 at 3:30 PM, Aaron Gray
<aaronngray.lists@googlemail.com> wrote:
> Hi,
>
> I am a newbie to git, so be warned :)
>
> I have installed git-daemon, and gitweb on an F10 server.
>
> Basically managed to do a 'git svn clone' on LLVM, it took 11 hours !
>
> Anyway I am having the problem that I can do a 'git svn fetch' and I see
> changes coming in. But the gitweb and another git clone from it do not
> reflect those changes. The repository is still showing its two days old.
>
> I am obviously missing something. The only documentation I could find on
> 'git svn' was the command line help and 'man git-svn'.
>
> Hope you can help,
>
> Aaron
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not working
  2009-03-23 19:43 ` Tim Visher
@ 2009-03-23 20:02   ` Aaron Gray
  0 siblings, 0 replies; 9+ messages in thread
From: Aaron Gray @ 2009-03-23 20:02 UTC (permalink / raw)
  To: Tim Visher; +Cc: Git Mailing List

>I had a lot of success when I was more actively using `git svn` with
>`git svn rebase`.  Just be sure that you're doing your work in local
>branches and then merging back into the main trunk branches that are
>tracking the svn repo, that way you can always get the latest changes
>from your clean trunk branch.

I tried a rebase and filenames with 'needs update' after them flew by then 
an error message  :-

update-index --refresh: command returned error: 1

Aaron

On Mon, Mar 23, 2009 at 3:30 PM, Aaron Gray
<aaronngray.lists@googlemail.com> wrote:
> Hi,
>
> I am a newbie to git, so be warned :)
>
> I have installed git-daemon, and gitweb on an F10 server.
>
> Basically managed to do a 'git svn clone' on LLVM, it took 11 hours !
>
> Anyway I am having the problem that I can do a 'git svn fetch' and I see
> changes coming in. But the gitweb and another git clone from it do not
> reflect those changes. The repository is still showing its two days old.
>
> I am obviously missing something. The only documentation I could find on
> 'git svn' was the command line help and 'man git-svn'.
>
> Hope you can help,
>
> Aaron
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>



-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not working
  2009-03-23 19:30 git svn teething problems - initial clone okay - fetches not working Aaron Gray
  2009-03-23 19:43 ` Tim Visher
@ 2009-03-23 21:03 ` Pascal Obry
  2009-03-23 21:31   ` Aaron Gray
  1 sibling, 1 reply; 9+ messages in thread
From: Pascal Obry @ 2009-03-23 21:03 UTC (permalink / raw)
  To: Aaron Gray; +Cc: Git Mailing List

Aaron Gray a écrit :
> Anyway I am having the problem that I can do a 'git svn fetch' and I see
> changes coming in. But the gitweb and another git clone from it do not
> reflect those changes. The repository is still showing its two days old.

You need a:

   $ git svn rebase

to fetch *and* merge the changes into the local tracking branch (master
by default).

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not working
  2009-03-23 21:03 ` Pascal Obry
@ 2009-03-23 21:31   ` Aaron Gray
  2009-03-23 21:58     ` Tim Visher
  0 siblings, 1 reply; 9+ messages in thread
From: Aaron Gray @ 2009-03-23 21:31 UTC (permalink / raw)
  To: pascal; +Cc: Git Mailing List

> Aaron Gray a écrit :
>> Anyway I am having the problem that I can do a 'git svn fetch' and I see
>> changes coming in. But the gitweb and another git clone from it do not
>> reflect those changes. The repository is still showing its two days old.
>
> You need a:
>
>   $ git svn rebase

I tried that.

> to fetch *and* merge the changes into the local tracking branch (master
> by default).

Pascal,

Could you give me a full set of instructions for importing :-

    http://llvm.org/svn/llvm-project/llvm

Thanks,

Aaron

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not  working
  2009-03-23 21:31   ` Aaron Gray
@ 2009-03-23 21:58     ` Tim Visher
  2009-03-23 22:49       ` Aaron Gray
  0 siblings, 1 reply; 9+ messages in thread
From: Tim Visher @ 2009-03-23 21:58 UTC (permalink / raw)
  To: Aaron Gray; +Cc: pascal, Git Mailing List

On Mon, Mar 23, 2009 at 5:31 PM, Aaron Gray
<aaronngray.lists@googlemail.com> wrote:
>> Aaron Gray a écrit :
>>>
>>> Anyway I am having the problem that I can do a 'git svn fetch' and I see
>>> changes coming in. But the gitweb and another git clone from it do not
>>> reflect those changes. The repository is still showing its two days old.
>>
>> You need a:
>>
>>  $ git svn rebase
>
> I tried that.
>
>> to fetch *and* merge the changes into the local tracking branch (master
>> by default).
>
> Pascal,
>
> Could you give me a full set of instructions for importing :-
>
>   http://llvm.org/svn/llvm-project/llvm
>

It sounds like your working directory might be dirty.  Are you sure
all of your changes have been committed?

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not working
  2009-03-23 21:58     ` Tim Visher
@ 2009-03-23 22:49       ` Aaron Gray
  2009-03-24  6:41         ` Pascal Obry
  0 siblings, 1 reply; 9+ messages in thread
From: Aaron Gray @ 2009-03-23 22:49 UTC (permalink / raw)
  To: Tim Visher; +Cc: pascal, Git Mailing List

On Mon, Mar 23, 2009 at 5:31 PM, Aaron Gray
<aaronngray.lists@googlemail.com> wrote:
>> Aaron Gray a écrit :
>>>
>>> Anyway I am having the problem that I can do a 'git svn fetch' and I see
>>> changes coming in. But the gitweb and another git clone from it do not
>>> reflect those changes. The repository is still showing its two days old.
>>
>> You need a:
>>
>>  $ git svn rebase
>
> I tried that.
>
>> to fetch *and* merge the changes into the local tracking branch (master
>> by default).
>
> Pascal,
>
> Could you give me a full set of instructions for importing :-
>
>   http://llvm.org/svn/llvm-project/llvm
>

   It sounds like your working directory might be dirty.  Are you sure
   all of your changes have been committed?

Probably. I am getting an error on doing 'git svn rebase' :-

many filenames * : needs update
update---index --refresh: command returned error: 1


Could you please give me the command to import the above SVN repository so I 
can redo the thing from scratch.

Many thanks in advance,

Aaron

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not working
  2009-03-23 22:49       ` Aaron Gray
@ 2009-03-24  6:41         ` Pascal Obry
  2009-03-24 11:45           ` Tim Visher
  0 siblings, 1 reply; 9+ messages in thread
From: Pascal Obry @ 2009-03-24  6:41 UTC (permalink / raw)
  To: Aaron Gray; +Cc: Tim Visher, Git Mailing List

Aaron Gray a écrit :
> Probably. I am getting an error on doing 'git svn rebase' :-
> 
> many filenames * : needs update
> update---index --refresh: command returned error: 1

So before the rebase try:

   $ git reset --hard HEAD

then

   $ git svn rebase

> Could you please give me the command to import the above SVN repository
> so I can redo the thing from scratch.

What you have done (at least described here in this forum) seems correct.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: git svn teething problems - initial clone okay - fetches not  working
  2009-03-24  6:41         ` Pascal Obry
@ 2009-03-24 11:45           ` Tim Visher
  0 siblings, 0 replies; 9+ messages in thread
From: Tim Visher @ 2009-03-24 11:45 UTC (permalink / raw)
  To: pascal; +Cc: Aaron Gray, Git Mailing List

On Tue, Mar 24, 2009 at 2:41 AM, Pascal Obry <pascal@obry.net> wrote:
> Aaron Gray a écrit :
>> Probably. I am getting an error on doing 'git svn rebase' :-
>>
>> many filenames * : needs update
>> update---index --refresh: command returned error: 1
>
> So before the rebase try:
>
>   $ git reset --hard HEAD
>
> then
>
>   $ git svn rebase
>

To be clear, this will destroy any non-committed changes in your
working copy so if you in fact are erroneously getting those errors
because you forgot to do a `git add .; git commit` on files you've
changed that you _meant_ to change, then you will lose those changes.
What's the output of `git status`?

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-24 11:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23 19:30 git svn teething problems - initial clone okay - fetches not working Aaron Gray
2009-03-23 19:43 ` Tim Visher
2009-03-23 20:02   ` Aaron Gray
2009-03-23 21:03 ` Pascal Obry
2009-03-23 21:31   ` Aaron Gray
2009-03-23 21:58     ` Tim Visher
2009-03-23 22:49       ` Aaron Gray
2009-03-24  6:41         ` Pascal Obry
2009-03-24 11:45           ` Tim Visher

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).