Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Michał Górny <mgorny@g.o>
Subject: [PATCH git-2.eclass 2/2] When constructing storedir, strip trailing '/.git' directory.
Date: Fri, 23 Dec 2011 15:34:56 +0100
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=386845
---
 eclass/git-2.eclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index 4f0b65b..44e3476 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.eclass
@@ -278,7 +278,8 @@ git-2_prepare_storedir() {
 		if [[ ${EGIT_PROJECT} ]]; then
 			clone_dir=${EGIT_PROJECT}
 		else
-			clone_dir=${EGIT_REPO_URI##*/}
+			local strippeduri=${EGIT_REPO_URI%/.git}
+			clone_dir=${strippeduri##*/}
 		fi
 		EGIT_DIR=${EGIT_STORE_DIR}/${clone_dir}
 
-- 
1.7.8.352.g876a6f.dirty



References:
[PATCH git-2.eclass 1/2] Clean up non-bare checkout before updating.
-- Michał Górny
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[PATCH git-2.eclass 1/2] Clean up non-bare checkout before updating.
Next by thread:
Re: [PATCH git-2.eclass 1/2] Clean up non-bare checkout before updating.
Previous by date:
Re: Re: New global USE flag "neon" for ARM NEON optimization(s)
Next by date:
[PATCH git-2.eclass 1/2] Clean up non-bare checkout before updating.


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.