public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] [PATCH git-2.eclass 2/2] When constructing storedir, strip trailing '/.git' directory.
  @ 2011-12-23 14:34 99% ` Michał Górny
  0 siblings, 0 replies; 1+ results
From: Michał Górny @ 2011-12-23 14:34 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny

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




^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-12-23 14:34     [gentoo-dev] [PATCH git-2.eclass 1/2] Clean up non-bare checkout before updating Michał Górny
2011-12-23 14:34 99% ` [gentoo-dev] [PATCH git-2.eclass 2/2] When constructing storedir, strip trailing '/.git' directory Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox