diff --git a/src/app/components/CommitDetail.tsx b/src/app/components/CommitDetail.tsx
index 2efcbdb4e9f051f1e3dbfaaf1f5141d9f2e66b4e..ef9b3da23d19066a418ee806fa4900ebef221fa7 100644
--- a/src/app/components/CommitDetail.tsx
+++ b/src/app/components/CommitDetail.tsx
@@ -12,7 +12,7 @@ interface CommitDetailProps {
 const CommitDetail: React.FC<CommitDetailProps> = ({ host, projectId, commitSha, token }) => {
     const isGitHub = host.includes('github');
     const { commit, files, loading, error } = useCommitDetails(projectId, commitSha, token, host);
-    const { files: filesGL, loading: loadingGL, error: errorGL } = useGLCommitFiles(projectId, commitSha, token, host);
+    const { files: filesGL, loading: loadingGL, error: errorGL } = isGitHub ? {} :  useGLCommitFiles(projectId, commitSha, token, host);
 
     if (loading) return <p>Loading...</p>;
     if (error) return <p>Error: {error.message}</p>;