Skip to content

Commit 50b73d1

Browse files
authored
Update gitauth.js
1 parent d0df17b commit 50b73d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/gitauth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ window.onload = async () => {
3434
treeLoc = getStorage('tree') ? getStorage('tree').split(',') : ['', '', ''];
3535

3636
// if repo dosen't have a branch (legacy treeLoc)
37-
if (!treeLoc[1].includes(':')) {
37+
if (treeLoc[1] && !treeLoc[1].includes(':')) {
3838

3939
// add default branch to repo
4040
treeLoc[1] += ':main';

0 commit comments

Comments
 (0)