marcelsimon / migrategitlabtogogs Goto Github PK
View Code? Open in Web Editor NEWMigrate repositories from Gitlab to Gogs or Gitea
License: BSD 2-Clause "Simplified" License
Migrate repositories from Gitlab to Gogs or Gitea
License: BSD 2-Clause "Simplified" License
Hey MarcelSimon your migration script looks pretty neat.
I've tried to migrate my repo's from Gitlab, detection and API calls are working fine.
However on the migration of the first repo I am getting this error:
Migrating project git@********.nl:PetervdPerk/GLT-Assign2.git to project GLT-Assign2 now.
Do you want to continue? (please answer yes or no) yes
Traceback (most recent call last):
File "migrate_gitlab_to_gogs.py", line 107, in
print('Could not create repo %s because of %s'%(src_name,json.loads(create_repo.text)['message']))
File "/usr/lib/python3.4/json/init.py", line 318, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
Hi there,
Does this also migrate issues and user info? What about the Wiki?
Could you please update your readme on the full range of migration?
Thank you!
There should be an option to continue
When importing a large number of repos, the user otherwise has to confirm each single one.
If there's a fresh repo on gitlab that contains no branches, pushing failes with an exception
For easier buld import, tokens should be (optionally) read from environment vars.
The script should begin with
#!/usr/bin/env python3
v3 is deprecated and does not work anymore. v4 seems to work properly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.