gitGraph: Cannot merge main into a production branch that has no prior commits in it #5898
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
I'm sure that this syntax used to work, because I would not have allowed a broken diagram into my documentation back in January and my diagram is broken now, so I'm raising this as a regression bug.
A common use case for Git is to have a main (or master, or develop) branch that is merged at intervals into a production (or release, or deployment) branch. A simple example of gitGraph to display this would be as follows:
In the development version of the Live Editor and in GitHub, I get "Error: Cannot merge branch 'main' into itself."
What I expect is a diagram that looks something like:
Steps to reproduce
Or go to https://develop.git.mermaid.live/edit#pako:eNqdU01PwzAM_StWzhWCa69MAg6c4FgJuYnbRiRx5aagadp_x11X2KZtCJpL82y_569sjGVHpjStzw-CfVcl0M9yjD6DdyVU5in57DHswQI-fQhQEwgFwoEc-AS5I-iF3Wiz5wS1YLIdYM1jhsyTtxXCTO6mMrPE3uUnaIYjSUsQUTln9Y5Cv8TYjuz7RDnZz2S6wg8CdG4AVENqfAuND3QieXv3lrn39oTzBD7kfdRK00LcaB2j0D9ySqxtknOZHUW8crxSxB_zjSwE3OwG9Hvmc_cX5iO2nWk45NG562gjDpnkbCH3Ab1cG8iFRq0pX23Wkvfl3an0mMIooDen672ZPCoTuK3MJOaoHvW3mGFVirQ3oLxPQlsNxzHzyzpZU2YZqTDCY9uZssEw6G3snS70ymMrGL9Rcj6zPM-Pave2tl_0yCHc for one I made earlier.
Screenshots
No response
Code Sample
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: