Commit 71edc266 authored by jplang's avatar jplang

Dup @generated_changeset_rev.

git-svn-id: https://svn.redmine.org/redmine/trunk@15682 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent cad1559b
......@@ -207,7 +207,7 @@ module ObjectHelpers
@generated_changeset_rev.succ!
changeset = new(attributes)
changeset.repository ||= Project.find(1).repository
changeset.revision ||= @generated_changeset_rev
changeset.revision ||= @generated_changeset_rev.dup
changeset.committed_on ||= Time.now
yield changeset if block_given?
changeset.save!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment