Bug 582538 - Cannot force-create a branch when a tag with an identical name exists
Summary: Cannot force-create a branch when a tag with an identical name exists
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 6.8   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-16 09:45 EDT by Florian Signoret CLA
Modified: 2023-11-17 18:26 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Signoret CLA 2023-10-16 09:45:52 EDT
How to reproduce:
- create a branch named "test"
- create a tag named "test"
- create a branch named "test" with force option

Expected result:
- All calls are successful

Actual result:
- JGitInternalExeption: Create branch returned unexpected result NO_CHANGE
Comment 1 Florian Signoret CLA 2023-10-16 10:15:11 EDT
I propose this fix:
https://git.eclipse.org/r/c/jgit/jgit/+/204974
Comment 2 Matthias Sohn CLA 2023-11-17 18:26:18 EST
submitted as e4a341db43d5d8a1e6e9c828e3b3e5ddd52b9186

thanks for the fix :-)