]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fix on check_and_create_svn_repo
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 19 Jan 2009 17:07:12 +0000 (17:07 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 19 Jan 2009 17:07:12 +0000 (17:07 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@761 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index d75c6a3c1798209c77777a9f9bf891e3ad82c139..e2d99eaad4abf08a64e5b206e7a2f5956dff6475 100644 (file)
@@ -939,6 +939,10 @@ function check_and_create_svn_repo {
   repository_type="`echo $repository | cut -d : -f 1`"
   repository_path="`echo $repository | cut -d : -f 2`"
 
+  if ! echo $repository | grep -q ":"; then
+    repository="file://$repository"
+  fi
+
   if [ "$repository_type" == "file" ] && [ ! -d "$repository_path" ]; then
     echo "Creating subversion repository $repository..."
     mkdir -p `dirname $repository_path`