From 3028224b9fa183982da4bde72d0172090c2c680c Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 11 Sep 2010 23:40:41 -0400 Subject: [PATCH] Simplifed the code to do svn+https:// in taskd --- taskd/clone.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/taskd/clone.sh b/taskd/clone.sh index f0fe47f..d6c080d 100755 --- a/taskd/clone.sh +++ b/taskd/clone.sh @@ -22,7 +22,7 @@ mail="$(config_get owner)" # Initial mirror echo "Initiating mirroring..." case "$url" in - svn://* | svn+http://*) + svn://* | svn+http://* | svn+https://*) # we just remote svn+ here, so svn+http://... becomes http://... svnurl="${url#svn+}" GIT_DIR=. git svn init -s "$svnurl" @@ -34,17 +34,6 @@ case "$url" in GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/tags/*:refs/tags/*' GIT_DIR=. git fetch ;; - svn+https://*) - # It's a bit more tricky here. - svnurl="${url#svn+}" - GIT_DIR=. git svn init -s "$svnurl" - yes t | (GIT_DIR=. git svn fetch) - GIT_DIR=. git config remote.origin.url . - GIT_DIR=. git config remote.origin.fetch '+refs/remotes/heads/*:refs/heads/*' - GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/trunk:refs/heads/master' - GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/tags/*:refs/tags/*' - GIT_DIR=. git fetch - ;; darcs://*) httpurl="${url/darcs:\/\//http://}" "$cfg_basedir"/bin/darcs-fast-export --export-marks=$(pwd)/dfe-marks "$httpurl" | \ -- 2.11.4.GIT