git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn wowes
@ 2009-07-22 13:55 Aaron Gray
  2009-07-22 18:24 ` Sverre Rabbelier
  2009-07-23  8:12 ` Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Aaron Gray @ 2009-07-22 13:55 UTC (permalink / raw)
  To: Git Mailing List

Hi,

I have a working git-svn clone of a svn based project.

At the mement I have a .sh script run every hour which goes :-

    git svn fetch
    git reset -- hard HEAD
    git svn rebase

I am sure this is like using a hammer to crack a nut.

Is there a better way to do this ?

Many thanks in advance,

Aaron

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

* Re: git-svn wowes
  2009-07-22 13:55 git-svn wowes Aaron Gray
@ 2009-07-22 18:24 ` Sverre Rabbelier
  2009-07-23  8:12 ` Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Sverre Rabbelier @ 2009-07-22 18:24 UTC (permalink / raw)
  To: Aaron Gray; +Cc: Git Mailing List

Heya,

On Wed, Jul 22, 2009 at 13:55, Aaron
Gray<aaronngray.lists@googlemail.com> wrote:
>   git svn rebase

Should be enough ('git svn rebase' runs 'git svn fetch' first),
assuming you don't touch the working directory, which you probably
don't considering that your script blasts away all changes every hour.

-- 
Cheers,

Sverre Rabbelier

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

* Re: git-svn wowes
  2009-07-22 13:55 git-svn wowes Aaron Gray
  2009-07-22 18:24 ` Sverre Rabbelier
@ 2009-07-23  8:12 ` Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2009-07-23  8:12 UTC (permalink / raw)
  To: Aaron Gray; +Cc: Git Mailing List

Aaron Gray <aaronngray.lists@googlemail.com> wrote:
> Hi,
>
> I have a working git-svn clone of a svn based project.
>
> At the mement I have a .sh script run every hour which goes :-
>
>    git svn fetch
>    git reset -- hard HEAD
>    git svn rebase
>
> I am sure this is like using a hammer to crack a nut.
>
> Is there a better way to do this ?

Assuming you don't make your own local changes ever:

  git svn fetch
  git reset --hard $ref

Where $ref is most likely "trunk" if you used -s/--stdlayout or
"git-svn" if you did not.  Running `git branch -r' will give you
a list of remote refs that you can reset to.

-- 
Eric Wong

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

end of thread, other threads:[~2009-07-23  8:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22 13:55 git-svn wowes Aaron Gray
2009-07-22 18:24 ` Sverre Rabbelier
2009-07-23  8:12 ` Eric Wong

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