mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist]  [PATCH] ptxd_make_get.sh: handle git://file:
@ 2018-11-20 15:41 Горелов Валентин Владимирович
  2018-11-22  6:20 ` Michael Olbrich
  2018-11-23 10:39 ` Roland Hieber
  0 siblings, 2 replies; 5+ messages in thread
From: Горелов Валентин Владимирович @ 2018-11-20 15:41 UTC (permalink / raw)
  To: ptxdist

[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-23 14:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20 15:41 [ptxdist] [PATCH] ptxd_make_get.sh: handle git://file: Горелов Валентин Владимирович
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

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