Package org.eclipse.jgit.api.errors

Examples of org.eclipse.jgit.api.errors.DetachedHeadException


        throw new NoHeadException(
            JGitText.get().pullOnRepoWithoutHEADCurrentlyNotSupported);
      if (!fullBranch.startsWith(Constants.R_HEADS)) {
        // we can not pull if HEAD is detached and branch is not
        // specified explicitly
        throw new DetachedHeadException();
      }
      branchName = fullBranch.substring(Constants.R_HEADS.length());
    } catch (IOException e) {
      throw new JGitInternalException(
          JGitText.get().exceptionCaughtDuringExecutionOfPullCommand,
View Full Code Here


              oldName));
        fullOldName = ref.getName();
      } else {
        fullOldName = repo.getFullBranch();
        if (ObjectId.isId(fullOldName))
          throw new DetachedHeadException();
      }

      if (fullOldName.startsWith(Constants.R_REMOTES))
        fullNewName = Constants.R_REMOTES + newName;
      else {
View Full Code Here

    try {
      String fullBranch = repo.getFullBranch();
      if (!fullBranch.startsWith(Constants.R_HEADS)) {
        // we can not pull if HEAD is detached and branch is not
        // specified explicitly
        throw new DetachedHeadException();
      }
      branchName = fullBranch.substring(Constants.R_HEADS.length());
    } catch (IOException e) {
      throw new JGitInternalException(
          JGitText.get().exceptionCaughtDuringExecutionOfPullCommand,
View Full Code Here

        throw new NoHeadException(
            JGitText.get().pullOnRepoWithoutHEADCurrentlyNotSupported);
      if (!fullBranch.startsWith(Constants.R_HEADS)) {
        // we can not pull if HEAD is detached and branch is not
        // specified explicitly
        throw new DetachedHeadException();
      }
      branchName = fullBranch.substring(Constants.R_HEADS.length());
    } catch (IOException e) {
      throw new JGitInternalException(
          JGitText.get().exceptionCaughtDuringExecutionOfPullCommand,
View Full Code Here

              oldName));
        fullOldName = ref.getName();
      } else {
        fullOldName = repo.getFullBranch();
        if (ObjectId.isId(fullOldName))
          throw new DetachedHeadException();
      }

      if (fullOldName.startsWith(Constants.R_REMOTES))
        fullNewName = Constants.R_REMOTES + newName;
      else {
View Full Code Here

              oldName));
        fullOldName = ref.getName();
      } else {
        fullOldName = repo.getFullBranch();
        if (ObjectId.isId(fullOldName))
          throw new DetachedHeadException();
      }

      if (fullOldName.startsWith(Constants.R_REMOTES))
        fullNewName = Constants.R_REMOTES + newName;
      else {
View Full Code Here

    try {
      String fullBranch = repo.getFullBranch();
      if (!fullBranch.startsWith(Constants.R_HEADS)) {
        // we can not pull if HEAD is detached and branch is not
        // specified explicitly
        throw new DetachedHeadException();
      }
      branchName = fullBranch.substring(Constants.R_HEADS.length());
    } catch (IOException e) {
      throw new JGitInternalException(
          JGitText.get().exceptionCaughtDuringExecutionOfPullCommand,
View Full Code Here

        throw new NoHeadException(
            JGitText.get().pullOnRepoWithoutHEADCurrentlyNotSupported);
      if (!fullBranch.startsWith(Constants.R_HEADS)) {
        // we can not pull if HEAD is detached and branch is not
        // specified explicitly
        throw new DetachedHeadException();
      }
      branchName = fullBranch.substring(Constants.R_HEADS.length());
    } catch (IOException e) {
      throw new JGitInternalException(
          JGitText.get().exceptionCaughtDuringExecutionOfPullCommand,
View Full Code Here

              oldName));
        fullOldName = ref.getName();
      } else {
        fullOldName = repo.getFullBranch();
        if (ObjectId.isId(fullOldName))
          throw new DetachedHeadException();
      }

      if (fullOldName.startsWith(Constants.R_REMOTES))
        fullNewName = Constants.R_REMOTES + newName;
      else {
View Full Code Here

        throw new NoHeadException(
            JGitText.get().pullOnRepoWithoutHEADCurrentlyNotSupported);
      if (!fullBranch.startsWith(Constants.R_HEADS)) {
        // we can not pull if HEAD is detached and branch is not
        // specified explicitly
        throw new DetachedHeadException();
      }
      branchName = fullBranch.substring(Constants.R_HEADS.length());
    } catch (IOException e) {
      throw new JGitInternalException(
          JGitText.get().exceptionCaughtDuringExecutionOfPullCommand,
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.api.errors.DetachedHeadException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.