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

git-find-large-files question on output lines designated with "P" #10

Open
kirkilj opened this issue Sep 6, 2018 · 1 comment
Open

Comments

@kirkilj
Copy link

kirkilj commented Sep 6, 2018

If I run the git-find-large-files script, I'm seeing output with just a "P" and a size, but no name or path:

$ sh ../git-repo-analysis-master/git-find-large-files.sh 200
240157  Y  binaries/Beth Org Presentation.fbr
79727   P
56699   P
39520   Y  oxygen_guide/downloads/dita.zip
33307   Y  binaries/Tears for Fears.ixmp
15924   P
15545   P
3696    Y  binaries/Cheyah Samples.zip
2418    Y  binaries/Onkyo_TX-SR608_En_web.pdf
657     P
479     P
455     P
240     P

What does it indicate about the path signified by a P in column 2?

@larsxschneider
Copy link
Owner

Great question! P means that the file is still "present". I made a change to the script to make this more clear: https://github.com/larsxschneider/git-repo-analysis/blob/master/git-find-large-files#L54

However, in your particular case the script finds large objects that are not associated to a file path. That means you have either gigantic Git tree/commit objects or the blobs have been removed from the repo already. The latter is way more likely.

Try this: Delete the repo and clone it again. This would ensure only "used" blobs are transferred to your machine. The entries with no name or path should go away. If that does not help, then we need to investigate further 😄

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