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.

trouble with git.pull

See original GitHub issue

So I did this:

  1. git clone
  2. git reset --hard HEAD~1 (from #129)
  3. git pull

and my gitBrach function was broken the same as git.currentBranch which return:

ref: refs/heads/master

It looks that the reset was correct and I had correct results.

Got this in console:

Using ref=ref: refs/heads/master
Performing a fast-forward merge...
Uncaught (in promise) Error: Could not resolve reference refs/heads/ref: refs/heads/master

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:24 (24 by maintainers)

github_iconTop GitHub Comments

2reactions
wmhiltoncommented, May 29, 2018

Also it seems that there are no tests for git.pull.

Why does everyone keep saying that?

2reactions
wmhiltoncommented, May 27, 2018

@TomasHubelbauer thank goodness I have you guys, keeping my honest LOL! I’ll fix the docs.

The problem is that I don’t do resolveRef({ref: ‘HEAD’, depth: 1}) the error happen in just clone + pull

@jcubic Well, somebody must be calling resolveRef({ref: 'HEAD', depth: 1}) to get that error… Oh look, it’s me! 🤦‍♂️

https://github.com/isomorphic-git/isomorphic-git/blob/master/src/commands/pull.js#L31

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - Pull Not Working - Unfuddle Support
You may try to commit the changes first and then run git pull again: · You may try to stash your local changes,...
Read more >
Git pull not pulling everything - Stack Overflow
I have a server where there's some config that I don't properly know where i just git pull and it gets what is...
Read more >
Is There A Problem With 'git pull'? - Perpetual Enigma
It means that you bring your local directory up to date first, and then merge your changes with it. Let's say you have...
Read more >
git-pull Documentation - Git
Incorporates changes from a remote repository into the current branch. If the current branch is behind the remote, then by default it will...
Read more >
Git Guides - git pull - GitHub
git pull is one of the 4 remote operations within Git. Without running git pull , your local repository will never be updated...
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