Actions
Defect #5923
closedreposman.rb do not sync the repository to the redmine's database
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
Actions