mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-08 16:41:31 +00: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:
parent
8ddbbcf4a6
commit
94647052a8
@ -190,23 +190,23 @@ module Redmine
|
||||
lines = []
|
||||
git_cmd(cmd_args) {|io| lines = io.readlines}
|
||||
begin
|
||||
id = lines[0].split[1]
|
||||
author = lines[1].match('Author:\s+(.*)$')[1]
|
||||
time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1])
|
||||
Revision.
|
||||
new(
|
||||
{
|
||||
:identifier => id,
|
||||
:scmid => id,
|
||||
:author => author,
|
||||
:time => time,
|
||||
:message => nil,
|
||||
:paths => nil
|
||||
}
|
||||
)
|
||||
id = lines[0].split[1]
|
||||
author = lines[1].match('Author:\s+(.*)$')[1]
|
||||
time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1])
|
||||
Revision.
|
||||
new(
|
||||
{
|
||||
:identifier => id,
|
||||
:scmid => id,
|
||||
:author => author,
|
||||
:time => time,
|
||||
:message => nil,
|
||||
:paths => nil
|
||||
}
|
||||
)
|
||||
rescue NoMethodError => e
|
||||
logger.error("The revision '#{path}' has a wrong format")
|
||||
return nil
|
||||
logger.error("The revision '#{path}' has a wrong format")
|
||||
return nil
|
||||
end
|
||||
rescue ScmCommandAborted
|
||||
nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user