Commit 802d0f10 authored by tmaruyama's avatar tmaruyama

scm: git: use explicit "master" for latest_changesets at unit app test

If revision is not set, controller sets default branch for latest_changesets.
"git log" returns HEAD on bare repository if revision is not set.

git-svn-id: https://svn.redmine.org/redmine/trunk@8810 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1415ae50
......@@ -250,11 +250,11 @@ class RepositoryGitTest < ActiveSupport::TestCase
@project.reload
assert_equal NUM_REV, @repository.changesets.count
# with limit
changesets = @repository.latest_changesets('', nil, 2)
changesets = @repository.latest_changesets('', 'master', 2)
assert_equal 2, changesets.size
# with path
changesets = @repository.latest_changesets('images', nil)
changesets = @repository.latest_changesets('images', 'master')
assert_equal [
'deff712f05a90d96edbd70facc47d944be5897e3',
'899a15dba03a3b350b89c3f537e4bbe02a03cdc9',
......
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