Skip to content

Conversation

@extrawurst
Copy link
Collaborator

closes #2809

@argenkiwi
Copy link

argenkiwi commented Dec 17, 2025

I can confirm the issue appears to be gone when building from this branch.

I am not that familiar with Rust development, so let me share the steps I followed to ensure I am not missing anything:

  1. Uninstalled gitui
  2. Cloned this repo
  3. Checked out the pre-push-with-lfs branch
  4. Executed cargo build
  5. Switched to the folder of the repo that presented the original issue
  6. Executed cargo build --manifest-path path/to/gitui/repo/Cargo.toml
  7. Successfully performed a push by pressing P

@extrawurst
Copy link
Collaborator Author

I can confirm the issue appears to be gone when building from this branch.

I am not that familiar with Rust development, so let me share the steps I followed to ensure I am not missing anything:

The way you did it works, if you wanna use this custom build in a few more places to test, simply run make install and it will install a custom build gitui in your system that you can invoke just like your prior installed gitui version

@argenkiwi
Copy link

I can confirm the issue appears to be gone when building from this branch.
I am not that familiar with Rust development, so let me share the steps I followed to ensure I am not missing anything:

The way you did it works, if you wanna use this custom build in a few more places to test, simply run make install and it will install a custom build gitui in your system that you can invoke just like your prior installed gitui version

Excellent, that will get me through the last work day of the year. Thank you for solving the issue so quickly. Have a great end of the year.

@extrawurst extrawurst requested a review from cruessler December 17, 2025 22:23
@cruessler
Copy link
Collaborator

@extrawurst I’ll try and have a look later this week! (I want to set up a proper repository with git lfs hooks for testing.)

@cruessler
Copy link
Collaborator

I started reviewing this PR, but since it’s a lot of new code and I’m not deeply familiar with hooks, it might take a while. :-) I can confirm, though, that the error message mentioned in the bug report is gone. Instead, git lfs pre-push … is called as far as I can tell.

Copy link
Collaborator

@cruessler cruessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, things are looking good! My understanding is that this PR adds proper passing of arguments and stdin to pre-push hook calls, to be more in line with what git does.

The changes in hooks.rs look good, but I haven’t been able to review them as detailed as the ones in lib.rs as this is an area I’m less familiar with.

Some of my comments are repetitive, e. g. ones to the effect of “Can this comment be removed”. I hope that’s more helpful than just a general “Some of the comments could potentially be removed”.

@extrawurst extrawurst requested a review from cruessler January 16, 2026 00:50
@extrawurst
Copy link
Collaborator Author

@cruessler ok thanks for the intensive review, the result I think is much better, no bash based asserting anymore and a better api on HookResult. Last sanity check please

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

Successfully merging this pull request may close these issues.

Pushing throws pre-push hook error on repository with LFS.

4 participants