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 ...@@ -370,7 +370,7 @@ elif ${bzr};then
#create a mirror #create a mirror
green_echo "Creating mirror from ${mirror}" 1>&2 green_echo "Creating mirror from ${mirror}" 1>&2
cd "${repo_dir}/${gitlab_namespace}" cd "${repo_dir}/${gitlab_namespace}"
git clone bzr::"${mirror}" "${project_name}" git clone --mirror bzr::"${mirror}" "${project_name}"
# cleaning repo # cleaning repo
cd "${project_name}" cd "${project_name}"
git gc --aggressive git gc --aggressive
......
...@@ -55,10 +55,6 @@ if git config --get svn-remote.svn.url &> /dev/null;then ...@@ -55,10 +55,6 @@ if git config --get svn-remote.svn.url &> /dev/null;then
fi fi
set -e set -e
git config --bool core.bare false 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 else
#just a git mirror so mirror it accordingly #just a git mirror so mirror it accordingly
git fetch 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