* [gentoo-commits] gentoo-x86 commit in eclass/tests: git-r3:subrepos.sh
@ 2014-06-01 22:07 Michal Gorny (mgorny)
0 siblings, 0 replies; only message in thread
From: Michal Gorny (mgorny) @ 2014-06-01 22:07 UTC (permalink / raw
To: gentoo-commits
mgorny 14/06/01 22:07:59
Added: git-r3:subrepos.sh
Log:
Properly canonicalize relative submodule URIs, bug #501250.
Revision Changes Path
1.1 eclass/tests/git-r3:subrepos.sh
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/git-r3:subrepos.sh?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/git-r3:subrepos.sh?rev=1.1&content-type=text/plain
Index: git-r3:subrepos.sh
===================================================================
#!/bin/bash
source tests-common.sh
inherit git-r3
# Test getting submodule URIs
test_subrepos() {
local suburi=${1}
local expect=( "${@:2}" )
tbegin "subrepos for ${suburi} -> ${expect[0]}${expect[1]+...}"
local subrepos
_git-r3_set_subrepos "${suburi}" "${repos[@]}"
[[ ${expect[@]} == ${subrepos[@]} ]]
tend ${?} || eerror "Expected: ${expect[@]}, got: ${subrepos[@]}"
}
# parent repos
repos=( http://foohub/fooman/foo.git git://foohub/fooman/foo.git )
# absolute URI
test_subrepos http://foo/bar http://foo/bar
test_subrepos /foo/bar /foo/bar
# plain relative URI
test_subrepos ./baz http://foohub/fooman/foo.git/baz git://foohub/fooman/foo.git/baz
# backward relative URIs
test_subrepos ../baz.git http://foohub/fooman/baz.git git://foohub/fooman/baz.git
test_subrepos ../../bazman/baz.git http://foohub/bazman/baz.git git://foohub/bazman/baz.git
texit
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-01 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-01 22:07 [gentoo-commits] gentoo-x86 commit in eclass/tests: git-r3:subrepos.sh Michal Gorny (mgorny)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox