On Thu, Nov 11, 2010 at 12:59:37PM +0100, Jan Holesovsky <kendy@suse.cz> wrote:
Indeed - looks great, please go ahead! :-)
Pushed. I'm attaching one more patch - I just realised symlinks under rawbuild are not created after clone. After applying the patch, one can proceed with: git clone <url> cd build bin/g clone to get the sources ready under rawbuild - so no extra 'bin/g pull' is needed. Does it look OK? Thanks.
From 259dc7ef7a29a117d986d01f4f47df0e15891842 Mon Sep 17 00:00:00 2001 From: Miklos Vajna <vmiklos@frugalware.org> Date: Fri, 12 Nov 2010 01:58:27 +0100 Subject: [PATCH] bin/g: create symlinks under rawbuild after clone --- bin/g | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/bin/g b/bin/g index 3828ea6..c865ff0 100755 --- a/bin/g +++ b/bin/g @@ -192,12 +192,15 @@ for DIR in $DIRS ; do git $PAGER "$COMMAND" $EXTRA "${FILES[@]}" RETURN=$? + # now we can change the dir in case of clone as well + [ "$COMMAND" = "clone" ] && cd $DIR + # update stamp if the repo changed NEWHEADREF=`git show-ref --head HEAD` [ "$HEADREF" != "$NEWHEADREF" ] && touch $CLONEDIR/repos_changed case "$COMMAND" in - pull) + pull|clone) # update links for link in `ls` ; do if [ ! -e "$RAWBUILDDIR/$link" ] ; then -- 1.7.3.2
Attachment:
pgplWF_cEgawG.pgp
Description: PGP signature