[packages/svn2git] Up to 2.4.0

arekm arekm at pld-linux.org
Fri Nov 27 21:48:46 CET 2026


commit 946b55df1bb3e1c8886f22f19cd5e9e1c8c0a547
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 15:28:42 2026 +0100

    Up to 2.4.0
    
    Fix startup crash on Ruby >= 3.2 (File.exists? removed).

 ruby-exist.patch | 12 ++++++++++++
 svn2git.spec     |  8 +++++---
 2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/svn2git.spec b/svn2git.spec
index 96bed6f..a35c413 100644
--- a/svn2git.spec
+++ b/svn2git.spec
@@ -1,11 +1,12 @@
 Summary:	Tool for importing existing svn projects into git
 Name:		svn2git
-Version:	2.3.2
-Release:	2
+Version:	2.4.0
+Release:	1
 License:	MIT
 Group:		Development/Tools
 Source0:	https://github.com/nirvdrum/svn2git/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	40c64c24e2d5ba31f16a277e2f9ffddf
+# Source0-md5:	f19ac6eb0634aa1fed31a1e40a2aeaa2
+Patch0:		ruby-exist.patch
 URL:		https://github.com/nirvdrum/svn2git
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.665
@@ -23,6 +24,7 @@ svn trunk rather than whichever svn branch your last commit was in.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/ruby-exist.patch b/ruby-exist.patch
new file mode 100644
index 0000000..eceeb1c
--- /dev/null
+++ b/ruby-exist.patch
@@ -0,0 +1,12 @@
+# File.exists? was removed in Ruby 3.2; svn2git crashes at startup without this
+--- svn2git-2.4.0.orig/lib/svn2git/migration.rb
++++ svn2git-2.4.0/lib/svn2git/migration.rb
+@@ -55,7 +55,7 @@
+       options[:password] = nil
+       options[:rebasebranch] = false
+ 
+-      if File.exists?(File.expand_path(DEFAULT_AUTHORS_FILE))
++      if File.exist?(File.expand_path(DEFAULT_AUTHORS_FILE))
+         options[:authors] = DEFAULT_AUTHORS_FILE
+       end
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/svn2git.git/commitdiff/946b55df1bb3e1c8886f22f19cd5e9e1c8c0a547



More information about the pld-cvs-commit mailing list