X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by lists.alpinelinux.org (Postfix) with ESMTP id 115431EBFFC for ; Mon, 31 Jan 2011 22:20:47 +0000 (UTC) Received: by bwz12 with SMTP id 12so5815358bwz.13 for ; Mon, 31 Jan 2011 14:20:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=O0SbDzz1dMsHlc864P/eWX14YUxpTFUqPb8eSXA6Ejs=; b=qsrkbxrsrc2bp/1A9OtZZMp68+Ap0JulTOEl+WjBHs2GeiGHdJWv9QIMy2JYG5W8qh sCsI7H9IOfJ1M7H5IN4NJt+euKqtLo4uhL0hwh0/Q9G+uP/U40JcPIslpwoKBIuPfvgL zfbOP01b1HwsXLzk95hDyFynSetKSttrnUNnw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xf2NxXoa1Gs+D5nhB2u6+fT/iuJOxxC43OBe8s94DXXpON4Qs2cwIHtkERrKW1zsr8 ld25gDMT/AmsXt9QVawOHB9WUdeeZPupPYt6JX4oMJwr0VxFrqqe0wItCY0L4M57WKKG na+LVevensB/OiNNEkURYu0C5AnAXAiZHeT/Y= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.204.57.18 with SMTP id a18mr5959370bkh.64.1296512444425; Mon, 31 Jan 2011 14:20:44 -0800 (PST) Received: by 10.204.23.195 with HTTP; Mon, 31 Jan 2011 14:20:44 -0800 (PST) In-Reply-To: <992739.15355.qm@web130105.mail.mud.yahoo.com> References: <20110128194613.213f2fa9@alpinelinux.org> <992739.15355.qm@web130105.mail.mud.yahoo.com> Date: Mon, 31 Jan 2011 17:20:44 -0500 Message-ID: Subject: Re: [alpine-devel] git.alpinelinux.org reorganized From: Jeff Bilyk To: Ted Trask Cc: Natanael Copa , alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'd agree with Ted. Could the existing repositories in /var/gitroot be renamed to {reponame} from {reponame}.git while leaving the new symlinks to ~/cgit? Jeff On Mon, Jan 31, 2011 at 4:53 PM, Ted Trask wrote: > I like the idea of developers creating there own repos. One problem thoug= h. The > update changed the URI of every existing git repository. For instance, > acf-kamailio became acf-kamailio.git. Now, the acf-kamailio APKBUILD is b= roken - > both url and source are wrong. While I could go through and change ALL of= the > existing APKBUILD files that point to alpinelinux repos, it would still l= eave > all of the existing installed APKs with invalid url information. Would be= much > nicer IMHO to modify the cgit config to change the URIs back to what they= were. > Thoughts? > > Ted > > > > ----- Original Message ---- > From: Natanael Copa > To: alpine-devel@lists.alpinelinux.org > Sent: Fri, January 28, 2011 2:46:13 PM > Subject: [alpine-devel] git.alpinelinux.org reorganized > > Hi, > > I have reorganized the git.alpinelinux.org repos. > > Developers can create new git repos at will, it is just to put the repo > in ~/cgit and it will show up on the http://git.alpinelinux.org index > page. You can select in what section the repo should show up by create > a cgitrc file and you can set the description. > > To create a new project named mytest do the following: > > # create a dir, init git and create a first commit > mkdir mytest > cd mytest > echo "testing" > test.txt > git init > git add . > git commit -m 'initial commit' > > > # clone it to a bare repo > cd .. > git clone --bare mytest mytest.git > > # set the description > echo "My git/cgit test" > mytest.git/description > > # Set the section for cgit > echo "section=3DDeveloper ncopa" > mytest.git/cgitrc > > # copy to ~/cgit dir on git.a.o > scp -r mytest.git git.alpinelinux.org:cgit/ > > # At this point, the empty repo should be visible on the index page > # http://git.alpinelinux.org/ > > # Note the ssh clone address on the cgit page: > # http://git.alpinelinux.org/cgit/ncopa/mytest.git/ > > # we no longer need the local bare repository. > rm -rf mytest.git > > To continue use the repo you will mostly like want change the repos > origin, so you can simply do 'git push' for pushing it to git.a.o. > There are 2 ways to do it: 1) modify origin in .git/config or 2) remove > the mytest dir and use the ssh clone url. > > 1) > cd mytest > vim .git/config > # add the following lines: > [remote "origin"] > =C2=A0 =C2=A0 =C2=A0 =C2=A0fetch =3D +refs/heads/*:refs/remotes/origin/* > =C2=A0 =C2=A0 =C2=A0 =C2=A0url =3D ssh://git.alpinelinux.org/gitroot/ncop= a/mytest.git > [branch "master"] > =C2=A0 =C2=A0 =C2=A0 =C2=A0remote =3D origin > =C2=A0 =C2=A0 =C2=A0 =C2=A0merge =3D refs/heads/master > > > 2) > rm -rf mytest > git clone ssh://git.alpinelinux.org/gitroot/ncopa/mytest.git > > Now you can do local modifications and git push etc. > > > Also note that developers with ssh also can put stuff in > ~/public_html that will show up in http://dev.alpinelinux.org/~user. > See http://dev.alpinelinux.org/=CC=83~ncopa/alpine for example. This is s= o > developers has some http space for uploading sources, bigger patchers > etc. Please do not abuse it. > > -nc > > PS. Would be nice if someone could test the above and put it on the > wiki.a.o. thanks! > > > --- > Unsubscribe: =C2=A0alpine-devel+unsubscribe@lists.alpinelinux.org > Help: =C2=A0 =C2=A0 =C2=A0 =C2=A0 alpine-devel+help@lists.alpinelinux.org > --- > > > > > > --- > Unsubscribe: =C2=A0alpine-devel+unsubscribe@lists.alpinelinux.org > Help: =C2=A0 =C2=A0 =C2=A0 =C2=A0 alpine-devel+help@lists.alpinelinux.org > --- > > --=20 Jeff --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---