We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d2fe2 commit 8cb56b3Copy full SHA for 8cb56b3
git2-hooks/src/lib.rs
@@ -242,6 +242,9 @@ pub fn hooks_post_commit(
242
/// `<local-ref> SP <local-object-name> SP <remote-ref> SP <remote-object-name> LF`
243
///
244
/// If `remote` is `None` or empty, the `url` is used for both arguments as per Git spec.
245
+///
246
+/// Note: The hook is called even when `updates` is empty (matching Git's behavior).
247
+/// This can occur when pushing tags that already exist on the remote.
248
pub fn hooks_pre_push(
249
repo: &Repository,
250
other_paths: Option<&[&str]>,
0 commit comments