Access static methods by class not instance

Change-Id: Iac57284704550da10e7029d22ee051da4a78636d
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2011-05-19 08:06:08 -07:00
parent e389b9a039
commit b091b02391
1 changed files with 1 additions and 1 deletions

View File

@ -1847,7 +1847,7 @@ public class ReceiveCommits implements PreReceiveHook, PostReceiveHook {
msgBuf.append(" into ");
if (mergedIntoRef.startsWith(Constants.R_HEADS)) {
msgBuf.append("branch ");
msgBuf.append(repo.shortenRefName(mergedIntoRef));
msgBuf.append(Repository.shortenRefName(mergedIntoRef));
} else {
msgBuf.append(mergedIntoRef);
}