mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 04:19:44 +02:00
fix check if branch already exist
This commit is contained in:
@@ -99,8 +99,10 @@ export const commit = function (msg, id, type, tag) {
|
||||
};
|
||||
|
||||
export const branch = function (name) {
|
||||
branches[name] = head != null ? head.id : null;
|
||||
log.debug('in createBranch');
|
||||
if (!branches[name]) {
|
||||
branches[name] = head != null ? head.id : null;
|
||||
log.debug('in createBranch');
|
||||
}
|
||||
};
|
||||
|
||||
export const merge = function (otherBranch) {
|
||||
|
Reference in New Issue
Block a user