summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-09-23 13:56:29 +0000
committerMichał Górny <mgorny@gentoo.org>2011-09-23 13:56:29 +0000
commit9f1b65498f33cc591fc9a54e5bee99d1b0d0c753 (patch)
tree174ac07be5595697cdb3cc83a93a54b8f45d62f7
parentReplace variable 'eval's with ${!foo}. (diff)
downloadhistorical-9f1b65498f33cc591fc9a54e5bee99d1b0d0c753.tar.gz
historical-9f1b65498f33cc591fc9a54e5bee99d1b0d0c753.tar.bz2
historical-9f1b65498f33cc591fc9a54e5bee99d1b0d0c753.zip
Remove unnecessary scary trailing-slash check for EGIT_REPO_URI.
If the slash is not there, ${EGIT_REPO_URI%/} will simply do nothing.
-rw-r--r--eclass/git-2.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index cd0c0a71d679..afa19ad40115 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.15 2011/09/23 13:55:47 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.16 2011/09/23 13:56:29 mgorny Exp $
# @ECLASS: git-2.eclass
# @MAINTAINER:
@@ -251,7 +251,7 @@ git-2_prepare_storedir() {
# calculate the proper store dir for data
# If user didn't specify the EGIT_DIR, we check if he did specify
# the EGIT_PROJECT or get the folder name from EGIT_REPO_URI.
- [[ -z ${EGIT_REPO_URI##*/} ]] && EGIT_REPO_URI="${EGIT_REPO_URI%/}"
+ EGIT_REPO_URI=${EGIT_REPO_URI%/}
if [[ -z ${EGIT_DIR} ]]; then
if [[ -n ${EGIT_PROJECT} ]]; then
clone_dir=${EGIT_PROJECT}