Skip to content
Snippets Groups Projects
Commit a29872c5 authored by Sam Gleske's avatar Sam Gleske
Browse files

Reverting changes from #18 fix bzr mirror.

This implements a proper --mirror option when mirroring.
parent b87d71e7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment