johnalbin / git-svn-migrate Goto Github PK
View Code? Open in Web Editor NEWHelper scripts to ease the migration of Subversion repositories to Git
License: GNU General Public License v2.0
Helper scripts to ease the migration of Subversion repositories to Git
License: GNU General Public License v2.0
How to git svn clone full history despite svn copy/rename
I've tried running this script a couple of times and it keeps stopping at line 205 of the git-svn-migrate.sh:
echo "- Converting svn:ignore properties into a .gitignore file..." >&2;
At least that's the last thing that get's output. The terminal just never moves passed this line. Is it possible this process just takes a long time? I see the .gitignore gets created but it never moves on as far as I can tell. It's been sitting for at least five minutes.
This is merely a suggestion (and might be heavy-handed, but I thought I would throw it out there). When migrating from svn, empty directories do not (and technically, cannot) get added to git because git doesn't store empty directories. My suggestion is to create the folder and place a .gitignore file with the following contents:
*
!.gitignore
This would at least allow the directory to get created in the new repo, because if an empty directory is committed to svn, the developer probably expects it to exist for the application code to be in a normal state.
mingw shell installed on windows 10, throws "cat: tmp-authors-transform.txt: No such file or directory".
Issuing touch tmp-authors-transform.txt
before fetch-svn-authors.sh solved it. I am not sure if it is good to check for the file before trying to append?!
Hi, i tried to convert a svn-repository with several branches to git, everything worked like a charm, except moving the trunk/ to master/.
~> git branch -m trunk master
fatal: A branch named 'master' already exists.
I was suprised and looked in "master/" there was a single ".gitignore" file.
Hope for help soon
on OSX 10.10.3 with a fresh checkout:
$ ./fetch-svn-authors.sh --help
clears the screen and displays (to start)
NAME \n\tfetch-svn-authors.sh - Retrieves Subversion usernames from a list of \n\tURLs
system info is:
$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.3
BuildVersion: 14D136
./fetch-svn-author.sh
should be ./fetch-svn-authors.sh
. I didn't want to send a pull request for 1 byte :)
Do you really need /bin/echo ?
Without this line, you can also run it on Windows.
Greetings
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.