mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
fix source indent of lib/redmine/scm/adapters/git_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20214 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -190,23 +190,23 @@ module Redmine
|
|||||||
lines = []
|
lines = []
|
||||||
git_cmd(cmd_args) {|io| lines = io.readlines}
|
git_cmd(cmd_args) {|io| lines = io.readlines}
|
||||||
begin
|
begin
|
||||||
id = lines[0].split[1]
|
id = lines[0].split[1]
|
||||||
author = lines[1].match('Author:\s+(.*)$')[1]
|
author = lines[1].match('Author:\s+(.*)$')[1]
|
||||||
time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1])
|
time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1])
|
||||||
Revision.
|
Revision.
|
||||||
new(
|
new(
|
||||||
{
|
{
|
||||||
:identifier => id,
|
:identifier => id,
|
||||||
:scmid => id,
|
:scmid => id,
|
||||||
:author => author,
|
:author => author,
|
||||||
:time => time,
|
:time => time,
|
||||||
:message => nil,
|
:message => nil,
|
||||||
:paths => nil
|
:paths => nil
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
rescue NoMethodError => e
|
rescue NoMethodError => e
|
||||||
logger.error("The revision '#{path}' has a wrong format")
|
logger.error("The revision '#{path}' has a wrong format")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
rescue ScmCommandAborted
|
rescue ScmCommandAborted
|
||||||
nil
|
nil
|
||||||
|
|||||||
Reference in New Issue
Block a user