[Pkg-clamav-devel] repo set up

Stephen Gran sgran at debian.org
Sun Sep 7 12:19:25 UTC 2008


This one time, at band camp, Michael Tautschnig said:
> > > 0.94 final in the next day or so, I hurriedly set up a git repo on
> > > alioth.  The layout is:
> > > ...
> > > debian/{unstable,volatile,etch-security):
> > >   various debian branches from master, with pulls from upstream/0.93
> > >   the volatile branch should probably be renamed to etch-volatile, but
> > >   for some reason I wasn't thinking clearly when I set it up.
> > 
> > I'm an absolute newbie with regard to git, but shouldn't a 
> > 
> > git clone ssh://meskes@git.debian.org/git/pkg-clamav/clamav.git
> > 
> > give me the whole repo? I do not have a debian dir at all in my repo. Needless
> > to say that git-buildpackage doesn't work then. :-)
> > 
> > So what did I misunderstand?
> 
> You need to checkout one of the debian branches afterwards, possible also
> branching off immediately:
> 
> git checkout origin/debian/unstable
> 
> or 
> 
> git checkout -b debian/unstable origin/debian/unstable
> 
> to get a local branch immediately. Use
> 
> git branch -r
> 
> to get an overview of the available branches.

I tend to do something like:

for branch in `git branch -r`; do 
  if [ "$branch" != "${branch##origin/}" ] && \
     [ "$branch" != 'origin/HEAD' ] && \
     [ "$branch" != 'origin/master' ]; then 
    echo "git branch --track ${branch##origin/} $branch"
  fi
done

This will set up a local tracking branch for every remote branch from
'origin' (the repo you just cloned from) that is not named HEAD or
master (in other words, every branch that is not default in the remote
repo, with any luck).

Then you can git checkout debian/unstable or whatever to start working
on it.

HTH,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20080907/58598ec6/attachment.pgp 


More information about the Pkg-clamav-devel mailing list