[opensuse-buildservice] [PATCH] [obs-service-tar_scm] Trim user from git address
Trim user prefix from tarball filename. This enables tar_scm service to be used with git and ssh transport (in conjuction with a passphrase less ssh-pubkey). Example Git URL: git@gitrepo.tld:foobar.git --- tar_scm | 1 + 1 file changed, 1 insertion(+) Index: obs-service-tar_scm/tar_scm =================================================================== --- obs-service-tar_scm.orig/tar_scm +++ obs-service-tar_scm/tar_scm @@ -105,6 +105,7 @@ if [ -z "$FILE" -a "$MYSCM" == "git" ]; FILE="${MYURL%/}" FILE="${FILE##*/}" FILE="${FILE%.git}" + FILE="${FILE#*@*:}" fi if [ -z "$FILE" -a "$MYSCM" == "svn" ]; then FILE="${MYURL%/}" -- Daniel Gollub Linux Consultant & Developer Tel.: +49-160 47 73 970 Mail: gollub@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (1)
-
Daniel Gollub