public class

GitDetachedHeadException

extends GitException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.bitbucket.ServiceException
           ↳ com.atlassian.bitbucket.scm.git.GitException
             ↳ com.atlassian.bitbucket.scm.git.GitDetachedHeadException

Class Overview

Exception thrown to indicate the bare clone backing a repository has a detached HEAD, which is an unsupported configuration.

Note: The only way the bare clone backing a repository can end up in a detached HEAD state is if it is directly modified on disk. The system will never produce this configuration during normal operation.

Summary

Public Constructors
GitDetachedHeadException(KeyedMessage message, String commitId)
Public Methods
@Nullable String getCommitId()
Retrieves the ID of the commit referenced by the detached head.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public GitDetachedHeadException (KeyedMessage message, String commitId)

Public Methods

@Nullable public String getCommitId ()

Retrieves the ID of the commit referenced by the detached head.

Returns
  • the detached commit ID