mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Горелов Валентин Владимирович" <gorelov.v@bpa.ru>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist]  [PATCH] ptxd_make_get.sh: handle git://file:
Date: Tue, 20 Nov 2018 15:41:19 +0000	[thread overview]
Message-ID: <A8518CE889EF4844A09A9C038E9CA6BF012D90DD32@mos-sr-exch2.bpa.local> (raw)

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

Hi PTXdist developers.
I've been using your system for a long time and I find it very convenient. But unfortunately,  it is unable to get sources from local folder-based Git repositories. That would be useful.
I've made a patch to add this function. May I expect it (or refurbished version of it) to be included in a future release?

Regards,
Valentin Gorelov

[-- Attachment #2: add_git_local_support.patch --]
[-- Type: application/octet-stream, Size: 565 bytes --]

diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh
index 17c515644..7c00fe149 100644
--- a/scripts/lib/ptxd_make_get.sh
+++ b/scripts/lib/ptxd_make_get.sh
@@ -394,6 +394,13 @@ ptxd_make_get() {
 		shift
 
 		case "${url}" in
+		git://file:*)
+			echo "local git repository, removing git://file: prefix from URL"
+			url=${url#git://file:}
+
+			ptxd_make_get_download_permitted &&
+			ptxd_make_get_git && return
+			;;
 		git://*|http://*.git|https://*.git|ssh://*.git)
 			ptxd_make_get_download_permitted &&
 			ptxd_make_get_git && return

[-- Attachment #3: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2018-11-20 15:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-20 15:41 Горелов Валентин Владимирович [this message]
2018-11-22  6:20 ` Michael Olbrich
2018-11-22 11:20   ` Горелов Валентин Владимирович
2018-11-23 10:39 ` Roland Hieber
2018-11-23 14:50   ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A8518CE889EF4844A09A9C038E9CA6BF012D90DD32@mos-sr-exch2.bpa.local \
    --to=gorelov.v@bpa.ru \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox