Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option --no-stdlayout #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion git-svn-migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ NAME
\n\t\tarchives. Use this option to get rid of that data. See git svn --help for
\n\t\ta fuller discussion on this option.
\n
\n\t--no-stdlayout
\n\t\tBy default, $script passes the --stdlayout option to
\n\t\tgit-svn clone. This option suppresses that behavior. See git svn --help
\n\t\tfor more information.
\n
\n\t--shared[=(false|true|umask|group|all|world|everybody|0xxx)]
\n\t\tSpecify that the generated git repositories are to be shared amongst
\n\t\tseveral users. See git init --help for more info about this option.
Expand Down Expand Up @@ -124,6 +129,7 @@ until [[ -z "$1" ]]; do
destination ) destination=$value;;
i ) ignore_file=$value;;
ignore-file ) ignore_file=$value;;
no-stdlayout ) no_stdlayout="true";;
shared ) if [[ $value == '' ]]; then
gitinit_params="--shared";
else
Expand Down Expand Up @@ -199,7 +205,14 @@ do
# Clone the original Subversion repository to a temp repository.
cd $pwd;
echo "- Cloning repository..." >&2;
git svn clone $url -A $authors_file --authors-prog=$dir/svn-lookup-author.sh --stdlayout --quiet $gitsvn_params $tmp_destination;
git_svn_clone="git svn clone $url -A $authors_file --authors-prog=$dir/svn-lookup-author.sh";

if [[ -z $no_stdlayout ]]; then
git_svn_clone="$git_svn_clone --stdlayout";
fi

git_svn_clone="$git_svn_clone --quiet $gitsvn_params $tmp_destination";
$git_svn_clone;

# Create .gitignore file.
echo "- Converting svn:ignore properties into a .gitignore file..." >&2;
Expand Down