From a29872c56fefc2e40bd4e7845368708ee4d47c65 Mon Sep 17 00:00:00 2001
From: Sam Gleske <sag47@drexel.edu>
Date: Wed, 29 Jan 2014 22:31:14 -0500
Subject: [PATCH] Reverting changes from #18 fix bzr mirror.

This implements a proper --mirror option when mirroring.
---
 add_mirror.sh    | 2 +-
 update_mirror.sh | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/add_mirror.sh b/add_mirror.sh
index 6eef0e8..540a94f 100755
--- a/add_mirror.sh
+++ b/add_mirror.sh
@@ -370,7 +370,7 @@ elif ${bzr};then
   #create a mirror
   green_echo "Creating mirror from ${mirror}" 1>&2
   cd "${repo_dir}/${gitlab_namespace}"
-  git clone bzr::"${mirror}" "${project_name}"
+  git clone --mirror bzr::"${mirror}" "${project_name}"
   # cleaning repo
   cd "${project_name}"
   git gc --aggressive
diff --git a/update_mirror.sh b/update_mirror.sh
index 304d5cf..0dae45c 100755
--- a/update_mirror.sh
+++ b/update_mirror.sh
@@ -55,10 +55,6 @@ if git config --get svn-remote.svn.url &> /dev/null;then
   fi
   set -e
   git config --bool core.bare false
-elseif -d ".git/bzr"
-  #this is an BZR mirror so update it accordingly
-  git pull --ff-only
-  git push gitlab
 else
   #just a git mirror so mirror it accordingly
   git fetch
-- 
GitLab