Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropping stash with reftable dont work #78

Open
zotttelbart opened this issue Jan 29, 2025 · 2 comments
Open

dropping stash with reftable dont work #78

zotttelbart opened this issue Jan 29, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@zotttelbart
Copy link

Version

7.1.0.202411261347-r

Operating System

Windows

Eclipse version

2024-12

Bug description

Delete a stash in a repo which is migrated to reftable ends up in

An internal error occurred during: "Dropping stashed commit".
Dropping stash not supported on this ref backend

Actual behavior

Close eclipse and migrate the repository, which you use in eclipse / egit to reftable with

git refs migrate --ref-format=reftable

Restart Eclipse stash some changes and try to drop this stash.

Dropping the stash in egit ends up in:

An internal error occurred during: "Dropping stashed commit".
Dropping stash not supported on this ref backend

Expected behavior

The stash should be dropped like on refdirectory refbackend.

Relevant log output

java.lang.UnsupportedOperationException: Dropping stash not supported on this ref backend
	at org.eclipse.jgit.api.StashDropCommand.<init>(StashDropCommand.java:62)
	at org.eclipse.jgit.api.Git.stashDrop(Git.java:683)
	at org.eclipse.egit.core.op.StashDropOperation$1.run(StashDropOperation.java:58)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2457)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2482)
	at org.eclipse.egit.core.op.StashDropOperation.execute(StashDropOperation.java:69)
	at org.eclipse.egit.ui.internal.commit.command.StashDropHandler$1.runInWorkspace(StashDropHandler.java:69)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Other information

No response

@zotttelbart zotttelbart added the bug Something isn't working label Jan 29, 2025
@tomaswolf
Copy link
Contributor

Sounds like a JGit problem?

@zotttelbart
Copy link
Author

Yes, I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants