On Tue, Nov 09, 2010 at 12:49:45PM +0100, Jan Holesovsky <[email protected]> wrote:
> I have updated the bin/g script so that it is now possible to use it for
> cloning the repos.

Hi,

Nice! Though I think it would make sense to allow just running 'bin/g
clone' without any parameters, as I think most of the cases we want the
same base url for build.git and the other repos. :)

Patch attached, OK to push?

Thanks.
From b1245b53c462170e219d935be4985c74ba92edaa Mon Sep 17 00:00:00 2001
From: Miklos Vajna <[email protected]>
Date: Thu, 11 Nov 2010 11:06:22 +0100
Subject: [PATCH] bin/g: make clone work without a parameter

---
 bin/g |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/g b/bin/g
index 347522d..3828ea6 100755
--- a/bin/g
+++ b/bin/g
@@ -176,6 +176,11 @@ for DIR in $DIRS ; do
                         [ -z "`git diff-index --name-only HEAD --`" ] && exit 0
                     fi
                     ;;
+                clone)
+                    if [ -z "$FILES" ]; then
+                        EXTRA="$(git config remote.origin.url|sed 
's|/[^/]\+$||')/${DIR}"
+                    fi
+                    ;;
             esac
 
             [ "$REPORT_REPOS" = "1" ] && echo "===== $DIR ====="
-- 
1.7.3.2

Attachment: pgpOegUwbPvvX.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to