Examples of NoWorkTreeException


Examples of org.eclipse.jgit.errors.NoWorkTreeException

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public ObjectId readOrigHead() throws IOException, NoWorkTreeException {
    if (isBare() || getDirectory() == null)
      throw new NoWorkTreeException();

    byte[] raw = readGitDirectoryFile(Constants.ORIG_HEAD);
    return raw != null ? ObjectId.fromString(raw, 0) : null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.