Open jyn514 opened 1 year ago
Thanks for the detailed bug report!
I've implemented it with just git push --delete ...
https://github.com/foriequal0/git-trim/blob/master/src/subprocess.rs#L277
That's why it runs pre-push hook. I might just add --no-verify
option to it, or reimplement it with libgit2.
I've been quite busy with my day job to maintain this projects. I will resume the project when I am free soon.
Hi there - would you mind taking a look at #207? It's a one-line fix to the issue
Describe the bug
git trim --delete 'remote:foo'
can fail if the pre-push hook returns an error.To Reproduce
echo false > .git/hooks/pre-push && chmod +x .git/hooks/pre-push
git trim --delete remote:origin
Expected behavior The branches are deleted.
Actual behaviour The hook fails:
Additional context and logs & dumps if necessary You should remove sensitive informations before put them here.
git rev-parse --abbrev-ref HEAD
: HEADgit show-ref
:git config --get-regexp '(push|fetch|remote|branch|trim).*' | sort
git log --oneline --graph --all
: this is too long to paste, it's 400k lines. HEAD is https://github.com/rust-lang/rust/commit/dcca6a375bd.