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.

git pull seem to corrupt my project

See original GitHub issue

Hi,

I’m using isomorphic-git for a Node.js CLI tool. We have a feature on that CLI that try to update the master branch when the commits on the remote is ahead of the local branch.

Everything execute with no errors, but when we go in the repository every git commands fail with a message like this one:

error: failed to validate delta base reference at offset 490 from .git/objects/pack/pack-31ef631484b7c201abb5edb1cd84209653789b00.pack   
fatal: packed object 33f32f92c45cfb866118b8c61fc002cfe85ff6dd (stored in .git/objects/pack/pack-31ef631484b7c201abb5edb1cd84209653789b00.
pack) is corrupt

Our project is open so you can take a look at the code and even install/link the CLI.

The code that call the pullMaster method: https://github.com/SlimIO/Sync/blob/master/commands/install.js#L118

The pullMaster code (with the git.pull … by the way the method work well after a clone). https://github.com/SlimIO/Sync/blob/master/src/utils.js#L183

The package is at the latest version, we tried with Node 10 and Node 12. And i’m on Windows 10.

Best Regards, Thomas

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fraxkencommented, Nov 8, 2019

Hi,

Yes. Seem to work fine on my side now with the latest version.

Thanks for your work !

Best Regards, Thomas

0reactions
wmhiltoncommented, Nov 3, 2019

I think this is fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fix a corrupted Git repository? - Stack Overflow
Create a backup copy of your corrupted repository. · Delete broken references: find .git/refs -size 0 -delete -print · Repair repository from ...
Read more >
What if git repository gets corrupted? - Super User
You can use git to backup things and it (usually) work but there's no dedicated, fool-proof logic to prevent data loss on file...
Read more >
Repairing and recovering broken git repositories - Git Cookbook
The worst kind of corruption in a git repository is corrupt or missing objects. Corrupt objects are incredibly tricky to recover if you...
Read more >
Repository corruption occurring - due to server crash during ...
Summary Randomly I'm getting repository corruption. ... git clone https://gitserver/mygroup/myproject.git Cloning into 'myproject'... error: ...
Read more >
Files in Git-Branches are getting corrupted
We were getting corrupted files after switching branches with opened files in git. We discovered two ways of getting corrupted files. Both ways...
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