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

fixes from bcorner13 repo more Debian repo #330

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

sergiomb2
Copy link

@sergiomb2 sergiomb2 changed the title fixes from Debian repo more my reviews fixes from bcorner13 repo more Debian repo Apr 12, 2024
sagiru and others added 12 commits June 27, 2024 19:13
git2svn sometimes parses the stdout of git commands but if the locale is
not set to something like en_US it can't and fails with the following
error:

Running command: git branch --track "<branch>" "remotes/svn/<branch>"
fatal: No se puede configurar el rastreo de información; el punto de
partida 'remotes/svn/1.0' no es una rama.
********************************************************************
svn2git warning: Tracking remote SVN branches is deprecated.
In a future release local branches will be created without tracking.
If you must resync your branches, run: svn2git --rebase
********************************************************************
Running command: git checkout "<branch>"
error: pathspec '<branch>' did not match any file(s) known to git.
command failed:
...

A comparable error for 'git config' happened if a older version of
git (< 1.7.4) will be used.

It's never a good idea to parse messages from stdout in a special
language but this simple fix parse the messages in the same manner and
should support different languages.
The stdin bypass will use a local variable stdin instead of $stdin and
it will result in the following error:

Traceback (most recent call last):
	2: from /usr/lib/ruby/vendor_ruby/svn2git/migration.rb:432:in `block (2 levels) in run_command'
      	1: from /usr/lib/ruby/vendor_ruby/svn2git/migration.rb:432:in `loop'
/usr/lib/ruby/vendor_ruby/svn2git/migration.rb:438:in `block (3 levels) in run_command': undefined local variable or method `stdin' for #<Svn2Git::Migration:0x0000555b7c945cc8> (NameError)
Did you mean?  String

This fix should handle the error and uses the global stdin
restrict branch
Add Rake Gem

Add Jewler Gem

Correct spelling of jeweler
@sergiomb2
Copy link
Author

Bradley Corner add some good hints , but have one commit with one typo whcih prevents svn2git runs correctly (it is fixed here)

Running command: git branch --track "<some_branch_here>" "remotes/svn/<some_branch_here>" fails but
git branch "<some_branch_here>" "remotes/svn/<some_branch_here>" not , and makes svn2git works again , I found it today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants