import java.util.Collection;
import org.eclipse.jgit.JGitText;
-import org.eclipse.jgit.api.errors.InvalidRemoteException;
+import org.eclipse.jgit.api.errors.InvalidRefNameException;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.storage.file.ReflogEntry;
ReflogReader reader = new ReflogReader(repo, ref);
return reader.getReverseEntries();
} catch (IOException e) {
- throw new InvalidRemoteException(MessageFormat.format(
- JGitText.get().cannotRead, ref));
+ throw new InvalidRefNameException(MessageFormat.format(
+ JGitText.get().cannotRead, ref), e);
}
}