Project

General

Profile

Actions

Defect #5923

closed

reposman.rb do not sync the repository to the redmine's database

Added by Riceball LEE almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-07-21
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

reposman.rb do not sync the repository to the redmine's database, the SCM configuration in DB is empty.

bug fixed:

(246L)
if File.directory?(repos_path)
#added by riceball
if $force == false and project.respond_to?(:repository)
log("\trepository for project #{project.identifier} already exists in Redmine", :level => 1)
next
end

if $svn_url
begin
project.post(:repository, :vendor => $scm, :repository => {:url => "#{$svn_url}#{project.identifier}"}, :key => $api_key)
log("\trepository #{repos_path} registered in Redmine with url #{$svn_url}#{project.identifier}");
rescue => e
log("\trepository #{repos_path} not registered in Redmine: #{e.message}");
end
end

Files

reposman.diff (1.09 KB) reposman.diff Riceball LEE, 2010-07-22 10:06
Actions

Also available in: Atom PDF