Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing info if objects are contained in .pack file #48

Open
AndrejZbin opened this issue May 20, 2020 · 1 comment
Open

Missing info if objects are contained in .pack file #48

AndrejZbin opened this issue May 20, 2020 · 1 comment

Comments

@AndrejZbin
Copy link

Some objects may be packed in .git/objects/pack/*.pack file, which may cause some properties like tag, commitMessage, ... to be null. Looking at the source code, these .pack files are not used at all.

This is how I produced the issue, some steps are probably redundant:

  1. Clone existing repo from GitLab repository
  2. Create tag for the last commit in master
  3. Create a new branch with some commits
  4. Create merge request and accept it
  5. Create tag for the last commit in master
  6. git fetch, git pull

You can also reproduce it by running git gc. Running git unpack-objects after fixes it.

Here is specification of the git .pack format:
https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/technical/pack-format.txt

@rwjblue
Copy link
Owner

rwjblue commented May 21, 2020

Awesome, thank you for the very detailed report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants