Insomnia: Could not expand reference

Created on 24 Aug 2020  路  5Comments  路  Source: Kong/insomnia

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

image

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)

  • Steps to reproduce;
  1. Create a repository in BitBucket
  2. Create an empty branch
  3. Configure repository in Insomnia
  4. Push something from Insomnia
  5. Make a pull from Insomnia
apdesigner aregit-sync bug

Most helpful comment

The same issue

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings