fix check if branch already exist

This commit is contained in:
Ashish Jain
2022-03-10 18:34:50 +01:00
parent 8cb548d30d
commit 9ddf138683

View File

@@ -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) {