Skip to content

Commit 8cb56b3

Browse files
committed
add comment
1 parent 58d2fe2 commit 8cb56b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git2-hooks/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ pub fn hooks_post_commit(
242242
/// `<local-ref> SP <local-object-name> SP <remote-ref> SP <remote-object-name> LF`
243243
///
244244
/// 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.
245248
pub fn hooks_pre_push(
246249
repo: &Repository,
247250
other_paths: Option<&[&str]>,

0 commit comments

Comments
 (0)