mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 05:19:58 +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) {
|
export const branch = function (name) {
|
||||||
branches[name] = head != null ? head.id : null;
|
if (!branches[name]) {
|
||||||
log.debug('in createBranch');
|
branches[name] = head != null ? head.id : null;
|
||||||
|
log.debug('in createBranch');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const merge = function (otherBranch) {
|
export const merge = function (otherBranch) {
|
||||||
|
Reference in New Issue
Block a user