When i make a pull in a branch from bitbucket, i've receveid this error: Could not expand reference "branch-name".

ExpandRefError: Could not expand reference "added-insomnia".
at Function.expand (C:\Users\Hitmasu\AppData\Local\insomnia-designer\app-2020.3.3\resources\app.asar\node_modules\isomorphic-git\dist\for-node\isomorphic-git\index.js:2199:11)
The same issue
The same issue
A workaround to fix that, is push at least one commit on branch. If branch is really empty (0 commits) that error will happen, however if branch has more than 1 commit, should work.
That's not a complete workaround, I am having this issue pretty consistently on existing repos with or without an .insomnia folder.
I also have the issue with a new repository. Reading this issue, I added a README file and the same error exists on the branch I added the file.
It would be helpful to have an example repositoy we could fork so we could have a starting base?
If any one could generate one it would be so helpful!
same problem here on Mac and Windows.
Most helpful comment
The same issue