public class GitDetachedHeadException extends GitException
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.
Constructor and Description |
---|
GitDetachedHeadException(com.atlassian.bitbucket.i18n.KeyedMessage message,
String commitId) |
Modifier and Type | Method and Description |
---|---|
String |
getCommitId()
Retrieves the ID of the commit referenced by the detached head.
|
getKeyedMessage, getLocalizedMessage, getMessageKey
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public GitDetachedHeadException(com.atlassian.bitbucket.i18n.KeyedMessage message, String commitId)
Copyright © 2019 Atlassian. All rights reserved.