diff --git a/add_mirror.sh b/add_mirror.sh index 6eef0e8809cb97e4a3184e3326de6c75625c00be..540a94f3d94e69ea0517e8bd769cdd8123438f79 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 304d5cfee0a98728419558679ef3bc485c38b09e..0dae45cb6d5b5fcc765415ff8eea1fc82f73705e 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