List of usage examples for org.eclipse.jgit.api.errors InvalidRefNameException InvalidRefNameException
public InvalidRefNameException(String msg)
From source file:util.ChkoutCmd.java
License:Eclipse Distribution License
private void processOptions() throws InvalidRefNameException { if ((!checkoutAllPaths && paths.isEmpty()) && (name == null || !Repository.isValidRefName(Constants.R_HEADS + name))) throw new InvalidRefNameException( MessageFormat.format(JGitText.get().branchNameInvalid, name == null ? "<null>" : name)); //$NON-NLS-1$ }