You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which didn't work and yielded a org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with files
Since the directory in which I want to clone is empty at that point in time due to the .setNoCheckout(true) I thought, I could just ignore this by doing
The checkout to succeed, because there are no conflicting Files
Relevant log output
Other information
The repository used was the jgit repository. The reference used was the commithash of the tag v7.1.0.202410012040-m1 However private/public repo is not relevant for this bug.
Removing .setNoCheckout(true) lead to the checkout succeeding.
The text was updated successfully, but these errors were encountered:
Version
7.1.0.202411261347-r
Operating System
Windows
Bug description
Hello 👋
clone
.setNoCheckout(true)
is conflicting with checkout.setForced(true)
I am not 100% sure if that is a bug, but it quite feels like it.
Actual behavior
So I did something along these lines:
and afterwards I tried to
Which didn't work and yielded a
org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with files
Since the directory in which I want to clone is empty at that point in time due to the
.setNoCheckout(true)
I thought, I could just ignore this by doingHowever, because of this code here failing when a file (that is already not there) can not be deleted, that didn't lead to the expected outcome.
jgit/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
Lines 1309 to 1311 in 89f5425
Expected behavior
The checkout to succeed, because there are no conflicting Files
Relevant log output
Other information
The repository used was the jgit repository. The reference used was the commithash of the tag
v7.1.0.202410012040-m1
However private/public repo is not relevant for this bug.Removing
.setNoCheckout(true)
lead to the checkout succeeding.The text was updated successfully, but these errors were encountered: