Commit 802d0f10 authored by tmaruyama's avatar tmaruyama
Browse files

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: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1415ae50
......@@ -250,11 +250,11 @@ class RepositoryGitTest < ActiveSupport::TestCase
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 [
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