scm: git: remove unused "block_given?" from adapter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5673 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e9e477426a
commit
1194235faa
|
@ -214,11 +214,7 @@ module Redmine
|
||||||
:message => changeset[:description],
|
:message => changeset[:description],
|
||||||
:paths => files
|
:paths => files
|
||||||
})
|
})
|
||||||
if block_given?
|
revisions << revision
|
||||||
yield revision
|
|
||||||
else
|
|
||||||
revisions << revision
|
|
||||||
end
|
|
||||||
changeset = {}
|
changeset = {}
|
||||||
files = []
|
files = []
|
||||||
end
|
end
|
||||||
|
@ -263,13 +259,8 @@ module Redmine
|
||||||
:time => Time.parse(changeset[:date]),
|
:time => Time.parse(changeset[:date]),
|
||||||
:message => changeset[:description],
|
:message => changeset[:description],
|
||||||
:paths => files
|
:paths => files
|
||||||
})
|
})
|
||||||
|
revisions << revision
|
||||||
if block_given?
|
|
||||||
yield revision
|
|
||||||
else
|
|
||||||
revisions << revision
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
revisions
|
revisions
|
||||||
|
|
Loading…
Reference in New Issue