matthiasblaesing opened a new pull request, #9123:
URL: https://github.com/apache/netbeans/pull/9123
In the checkout dialog users can enter object ids manually. As git allows
using truncated IDs as identifiers, subsets of the complete id are valid
inputs. When these are resolved an the id-part can't be resolved to a single
object a dialog pops out telling users, that the commit does not exist.
1. The message is wrong. An object with that abreviated id exists, it is
just not one, but multiple.
2. For the commit dialog the dialog stops the user while typing. This makes
entering object id arkward.
Both points are addressed here.
Screenshot of the problem:
<img width="1126" height="428" alt="grafik"
src="https://github.com/user-attachments/assets/e084ca41-a427-402e-b82f-7ad30ef4cb5c"
/>
Observed exception (causing the dialog):
```
INFO [org.netbeans.modules.git]: The given id [7b] is not a commit or an
annotated tag. org.eclipse.jgit.errors.AmbiguousObjectException: Object
abbreviation 7b is ambiguous
at
org.eclipse.jgit.lib.Repository.resolveAbbreviation(Repository.java:925)
at org.eclipse.jgit.lib.Repository.resolveSimple(Repository.java:853)
at org.eclipse.jgit.lib.Repository.resolve(Repository.java:818)
at org.eclipse.jgit.lib.Repository.resolve(Repository.java:474)
at org.netbeans.libs.git.jgit.Utils.parseObjectId(Utils.java:286)
Caused: org.netbeans.libs.git.GitException: The given id [7b] is not a
commit or an annotated tag.
at org.netbeans.libs.git.jgit.Utils.parseObjectId(Utils.java:290)
at org.netbeans.libs.git.jgit.Utils.findCommit(Utils.java:265)
at org.netbeans.libs.git.jgit.Utils.findCommit(Utils.java:261)
at
org.netbeans.libs.git.jgit.commands.LogCommand.run(LogCommand.java:109)
at
org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:56)
at
org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:53)
at
java.base/java.security.AccessController.doPrivileged(AccessController.java:251)
at
org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:53)
at org.netbeans.libs.git.GitClient.log(GitClient.java:941)
at org.netbeans.modules.git.client.GitClient$38.call(GitClient.java:603)
at org.netbeans.modules.git.client.GitClient$38.call(GitClient.java:599)
at
org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:945)
at
org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:968)
at
org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:980)
at
org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:909)
at
org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:887)
at org.netbeans.modules.git.client.GitClient.log(GitClient.java:599)
[catch] at
org.netbeans.modules.git.ui.repository.RevisionInfoPanelController$LoadInfoWorker.run(RevisionInfoPanelController.java:179)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists