Commit 436b0731 authored by Tomas Vik (OOO back on 2026-08-31)'s avatar Tomas Vik (OOO back on 2026-08-31) 🌴
Browse files

fix: git clone not working for projects without repositories

parent 15e46a0a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ export const compareCurrentBranch: ProjectCommand = async projectInRepository =>
    );
  }

  if (getLastCommitSha(repository.rawRepository) && projectWithRepoInfo.repository.rootRef) {
  if (getLastCommitSha(repository.rawRepository) && projectWithRepoInfo.repository?.rootRef) {
    await openUrl(
      `${project.webUrl}/-/compare/${projectWithRepoInfo.repository.rootRef}...${getLastCommitSha(
        repository.rawRepository,
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ export interface GqlProjectWithRepoInfo {
  httpUrlToRepo: string;
  sshUrlToRepo: string;
  fullPath: string;
  repository: {
  repository?: {
    rootRef: string;
    empty: boolean;
  };
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ export class GitLabRemoteSourceProvider implements RemoteSourceProvider {
    );

    return result.projects.nodes
      .filter(project => !project.repository.empty)
      .filter(project => !project.repository?.empty)
      .map(project => remoteForProject(project));
  }
}