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

display more info when .git_store_meta is malformatted #49

Open
samirnoman opened this issue Jun 24, 2024 · 0 comments
Open

display more info when .git_store_meta is malformatted #49

samirnoman opened this issue Jun 24, 2024 · 0 comments

Comments

@samirnoman
Copy link
Contributor

samirnoman commented Jun 24, 2024

I would like to thank you for this valuable tool which bridges an important gap in git.

When using git-store-meta.pl, I sometimes encounter the error:

.git_store_meta is malformatted.
Fix it or run --store to create new

And by inspecting the file it's not clear why!
These errors seem like random (I haven't been able to find what causes them)!

It will very helpful to display more information to aid in diagnosing this error such as invalid version number or invalid field or missing field, ... etc.

So, I made an attempt at making this with this PR (#45 Add error info to get_cache_header_info and display it to end user) to return a meaningful error from the function get_cache_header_info and display it. This should help diagnose these errors in the future in order to be able to solve them quickly

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

1 participant