Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-mirrors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wonko
gitlab-mirrors
Commits
a29872c5
Commit
a29872c5
authored
11 years ago
by
Sam Gleske
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
add_mirror.sh
+1
-1
1 addition, 1 deletion
add_mirror.sh
update_mirror.sh
+0
-4
0 additions, 4 deletions
update_mirror.sh
with
1 addition
and
5 deletions
add_mirror.sh
+
1
−
1
View file @
a29872c5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
update_mirror.sh
+
0
−
4
View file @
a29872c5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment