X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fmodel_Git.t;h=dc069c8bf2a3ee6601ef68c6583dd6b25f49054c;hb=0ee97fecd5bcbf5c315cee1988e3abd66a1b0840;hp=09a4552ac54a33eb59d09ec59958e2a814cb6f73;hpb=9dc3b9a51f9b3f6c866766bfccaf70fe1c23261a;p=catagits%2FGitalist.git diff --git a/t/model_Git.t b/t/model_Git.t index 09a4552..dc069c8 100644 --- a/t/model_Git.t +++ b/t/model_Git.t @@ -31,7 +31,7 @@ is( $projectList->[0]->{name}, 'bare.git', 'list_projects has correct name for " # Liberally borrowed from rafl's gitweb my $repo = 'repo1'; -like($m->head_hash($repo), qr/^([0-9a-fA-F]{40})$/, 'get_head_hash'); +like($m->head_hash('HEAD', $repo), qr/^([0-9a-fA-F]{40})$/, 'head_hash'); { my @tree = $m->list_tree('3bc0634310b9c62222bb0e724c11ffdfb297b4ac', $repo);