Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Tue, Nov 09, 2010 at 12:49:45PM +0100, Jan Holesovsky <kendy@suse.cz> 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 <vmiklos@frugalware.org>
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: pgpfE78pIQHmW.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.