question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when pulling after a commit has been made outside isomorphic-git

See original GitHub issue

In the browser (Firefox latest stable), using <script src="bundle.umd.min.js"></script> where bundle.umd.min.js comes from node_modules/isomorphic-git/dist/ (i.e., latest on npm), I can successfully clone a repo from GitHub using isomorphic-git (woweee 🙌!):

        await git.clone({
          fs,
          dir: 'repo',
          url: 'https://cors-buster-tbgktfqyku.now.sh/github.com/fasiha/test-data',
          singleBranch: true,
          depth: 1
        });

Then outside isomorphic-git/browser I push another commit (e.g., I go to GitHub and edit a file and commit).

Then back in my isomorphic-git browser tab to git.pull but I can’t: running this in the JS Console:

git.pull({fs, dir: 'repo'}).then(x => console.log(x))

produces TypeError: e.committer is undefined in merge.js:65:2.

If I try to go a different route: I can run git.fetch successfully but git.merge in isomorphic-git tab fails with a different error.

I understand that only fast-forwards are allowed, but the remote repo on GitHub is only a commit ahead of that in isomorphic-git and should fast-forward.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
wmhiltoncommented, Jul 1, 2018

I’ll have to test this more thoroughly this week. I’ll figure it out, I promise. This is too basic and important a task to have not working!

1reaction
fasihacommented, Sep 27, 2018

So I tested this today with latest npm-published version, both with isogit CLI utility and browser, and everything worked as expected!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Codes - isomorphic-git
Failed to checkout "{ ref }" because commit { oid } is not available locally. Do a git fetch to make the branch...
Read more >
isomorphic-git/Lobby - Gitter
Since updating from 0.70.7 to 1.7.0 I'm keep getting the following error ... but I was wondering if isomorphic-git has actually been tested...
Read more >
isomorphic-git/index.d.ts - UNPKG
* If the branch already exists it will check out that branch. Otherwise, it will create a new remote tracking branch set to...
Read more >
github - Getting error 'git pull ...') before pushing again
hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. ...
Read more >
Isomorphic-git v1.0 - Hacker News
- Another one is a bug with git init followed by git add remote and git pull which leads to a reference error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found