Mailinglist Archive: opensuse-buildservice (175 mails)

< Previous Next >
[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@xxxxxxxxxxx: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@xxxxxxxxxxxxx

B1 Systems GmbH
Osterfeldstra├če 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
< Previous Next >
This Thread
  • No further messages