Skip to content

Commit f6e9a7d

Browse files
Fix for empty branchName
1 parent 847d5bd commit f6e9a7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/initContribution.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ function initContribution(branchName)
3434
if ~isempty(strfind(branchName, 'develop')) || ~isempty(strfind(branchName, 'master'))
3535
branchName = '';
3636
fprintf([gitCmd.lead, ' -> Please use a different name that does not contain <develop> or <master>.', gitCmd.fail, gitCmd.trail]);
37-
else
37+
elseif ~isempty(branchName)
3838
checkoutFlag = true;
39+
else
40+
branchName = '';
3941
end
4042
end
4143
end

0 commit comments

Comments
 (0)