Commits

Jason Hinch committed 843a67f

Convert usage of the other deprecated method I missed

Comments (0)

Files changed (1)

src/main/java/com/atlassian/stash/plugin/reposysinfo/RepositorySysInfoServlet.java

     }
 
     protected List<String> findRepositoryHooks(Repository repository, File repositoryDirectory) {
-        if (repository.getScmType() == ScmType.GIT) {
+        // TODO: Convert to GitScm.ID.equals() when 2.0 is out
+        if ("git".equals(repository.getScmId())) {
             File hooksDirectory = new File(repositoryDirectory, "hooks");
             if (hooksDirectory.isDirectory()) {
                 return Arrays.asList(hooksDirectory.list(new FilenameFilter() {