[ooo-build] Updated handling of the git repositories

Miklos Vajna vmiklos at frugalware.org
Thu Aug 26 17:23:46 PDT 2010


On Thu, Aug 26, 2010 at 05:41:26PM +0200, Jan Holesovsky <kendy at suse.cz> wrote:
> OK - now, after some fixes I am much more confident in this framework,
> and ask everyone to configure with --with-git for the development.
> Please remove your build/ooo330-m4, it will be safer to start anew.  For
> building packages, Petr will tag the Alpha 0 very soon (in all the
> repositories).

I'm attaching a related fix - git remote show is not meant to be used by
scripts.

OK to push?

Thanks.
-------------- next part --------------
From 10703c51bd054e714590573a186cb3927b504562 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos at frugalware.org>
Date: Fri, 27 Aug 2010 02:20:01 +0200
Subject: [PATCH] configure: don't use git remote show

Its output is not guaranteed to be stable, use git config instead.
---
 configure.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 759e14b..e30ce36 100644
--- a/configure.in
+++ b/configure.in
@@ -1583,7 +1583,7 @@ else
     if test "$with_git" != "yes" ; then
         OOO_GIT="$with_git"
     else
-        guess=`git remote show -n origin | grep 'Fetch URL: ' | sed -e 's/^.*Fetch URL: //' -e 's#/ooo-build$##'`
+        guess=`git config remote.origin.url | sed 's#/ooo-build$##'`
         if test -n "$guess" ; then
             OOO_GIT="$guess"
         fi
-- 
1.7.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/ooo-build/attachments/20100827/c91fbd6f/attachment.pgp>


More information about the ooo-build mailing list