Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 296745 Details for
Bug 386845
git-2.eclass: ${PN}_LIVE_REPO makes git-2 use wrong storedir (egit-src/.git)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
When constructing storedir, strip trailing '/.git' directory.
When-constructing-storedir-strip-trailing-git-dire.patch (text/plain), 841 bytes, created by
Michał Górny
on 2011-12-23 14:26:59 UTC
(
hide
)
Description:
When constructing storedir, strip trailing '/.git' directory.
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2011-12-23 14:26:59 UTC
Size:
841 bytes
patch
obsolete
>From de8384e83f5f6812cbc4b78ae08c29c5efad047b Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> >Date: Fri, 23 Dec 2011 15:27:16 +0100 >Subject: [PATCH] When constructing storedir, strip trailing '/.git' > directory. > >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 386845
: 296745