Hello.

All of the newly cloned Fedora package repositories have a strange Git pre-push hook.

Code listing:

```
#!/bin/bash

_remote="$1"
_url="$2"

exit_code=0
while read -r _local_ref local_sha _remote_ref _remote_sha
do
command -v fedpkg >/dev/null 2>&1 || { echo >&2 "Warning: 'fedpkg' is missing, \
pre-push check is omitted. See .git/hooks/pre-push"; exit 0; }
    fedpkg pre-push-check "$local_sha"
    ret_code=$?
    if [ $ret_code -ne 0 ] && [ $exit_code -eq 0 ]; then
        exit_code=$ret_code
    fi
done

exit $exit_code
```

What is the purpose of this hook? Is it possible to disable its generation for my packages?

--
Sincerely,
  Vitaly Zaitsev (vit...@easycoding.org)
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to