[Fai-commit] r4538 - trunk/lib

lange at alioth.debian.org lange at alioth.debian.org
Thu Aug 30 08:24:19 UTC 2007


Author: lange
Date: 2007-08-30 08:24:18 +0000 (Thu, 30 Aug 2007)
New Revision: 4538

Modified:
   trunk/lib/get-config-dir-svn
Log:
add svn+ssh support


Modified: trunk/lib/get-config-dir-svn
===================================================================
--- trunk/lib/get-config-dir-svn	2007-08-28 15:23:23 UTC (rev 4537)
+++ trunk/lib/get-config-dir-svn	2007-08-30 08:24:18 UTC (rev 4538)
@@ -14,11 +14,18 @@
 protocol=$(expr match "$FAI_CONFIG_SRC" '\([^:]*\)://')
 username=$(expr match "$FAI_CONFIG_SRC" '[^:]*://\([^@]*\)@')
 svnpath=$(expr match "$FAI_CONFIG_SRC" '[^:]*://[^@]\+@\([^[:space:]]\+\)')
+[ -n "$username" ] && user="--username $username"
+[ -z "$username" ] && svnurl=$FAI_CONFIG_SRC # if no user is specified
 
 case $protocol in
 	svn)
 		svnurl="svn://$svnpath"
 		;;
+        svn+ssh)
+	        svnurl="svn+ssh://$svnpath"
+		user=""
+		export SVN_SSH="ssh -l $username"
+		;;
 	svn+file)
 		svnurl="file://$svnpath"
 		;;
@@ -34,8 +41,6 @@
 		;;
 esac
 		
-[ -n "$username" ] && user="--username $username"
-[ -z "$username" ] && svnurl=$FAI_CONFIG_SRC # if no user is specified
 
 if [ -d "$FAI/.svn" ] ; then
    echo "Updating SVN in $FAI"




More information about the Fai-commit mailing list