[Pkg-octave-devel] Migrate the SVN repos to Git

Rafael Laboissiere rafael at debian.org
Wed May 27 05:14:48 UTC 2009


* Ólafur Jens Sigurðsson <ojsbug at gmail.com> [2009-05-26 23:54]:

> On Tue, May 05, 2009 at 09:48:31AM +0200, Rafael Laboissiere wrote:
> > * Rafael Laboissiere <rafael at debian.org> [2009-05-04 22:29]:
> > 
> > > I started already but not with a package.  The web site sources are now
> > > under Git control:
> > > 
> > > http://git.debian.org/?p=pkg-octave/www.git
> > 
> > I migrated octave-epstk as a test case:
> > 
> >     http://git.debian.org/?p=pkg-octave/octave-epstk.git
> > 
> > Everything seems to work fine.  I also removed the obsolete SVN
> > repository for octave-epstk.
> > 
> > I will eventually update the DOG Guidelines to reflect the use of Git.  At
> > some point I should look at git-buildpackage (I do not know about it yet).
> > A possible workflow for using the Git repositories is like this:
> > 
> >     $ PKG=src-package-name
> >     $ VER=some-version
> >     $ apt-get source $PKG
> >     $ cd $PKG-$VER
> >     $ rm -rf debian
> >     # The following is equivalent to svn checkout
> >     $ git clone ssh://git.debian.org/git/pkg-octave/$PKG.git .
> >     # Edit debian/* files
> >     $ debuild -i 
> >     $ dupload
> >     $ git commit -a -m "Debian release ${PKG}_$VER-1"
> >     $ git push # equivalent to svn commit              
> 
> I just tried to follow this and I no longer have access to the repo
> through ssh, just normal git, does the alioth password not work for
> this?

Try this instead:

     $ PKG=src-package-name 
     $ VER=some-version 
     $ apt-get source $PKG 
     $ cd $PKG-$VER 
     $ rm -rf * 
     # The following is equivalent to svn checkout 
     $ git clone ssh://git.debian.org/git/pkg-octave/$PKG.git . 
     # Recover upstream files
     $ tar xfz ../${PKG}_$VER.orig.tar.gz --strip=1
     # Edit debian/* files 
     $ debuild -i 
     $ dupload 
     $ git commit -a -m "Debian release ${PKG}_$VER-1" 
     $ git push # equivalent to svn commit                       

-- 
Rafael



More information about the Pkg-octave-devel mailing list