lib/svn2git/migration.rb in nirvdrum-svn2git-1.3.0 vs lib/svn2git/migration.rb in nirvdrum-svn2git-1.3.1

- old
+ new

@@ -149,15 +149,15 @@ get_branches end def get_branches @remote = `git branch -r`.split(/\n/) - @tags = @remote.find_all { |b| b.strip =~ %r{^#{@options[:tags]}\/} } + @tags = @remote.find_all { |b| b.strip =~ %r{^tags\/} } end def fix_tags @tags.each do |tag| - id = tag.strip.gsub(%r{^#{@options[:tags]}\/}, '') + id = tag.strip.gsub(%r{^tags\/}, '') subject = `git log -1 --pretty=format:"%s" #{tag.strip()}` date = `git log -1 --pretty=format:"%ci" #{tag.strip()}` run_command("GIT_COMMITTER_DATE='#{date}' git tag -a -m '#{subject}' '#{id.strip()}' '#{tag.strip()}'") run_command("git branch -d -r #{tag.strip()}") end