git main branch name unknown until first change detected in remote repository

XMLWordPrintable

    • Type: Bug
    • Resolution: Timed out
    • Priority: Low
    • N/A
    • Affects Version/s: 3.7.0
    • Component/s: None
    • Severity 3 - Minor

      FishEye, when indexing git repositories, detects default branch on the remote repository. But this information is not persisted, so after instance restart, the default branch would be unknown until first slurp of remote repository detects new changes that needs to be indexed.
      So for repositories where there is no activity in remote repository since last indexing, or where remote repositories are no longer available, the default branch name would be unknown.
      Also, when remote repository has no default branch specified (git remote show <<URL>> returns "HEAD branch: (unknown)" for instance), the default branch would never be set) - perhaps fallback to master would be better?

      This causes few problems with FishEye/Crucible:

      Suggested fix:

            Assignee:
            Unassigned
            Reporter:
            Piotr Swiecicki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: