```bash
#!/bin/bash
# This file was generated by fedpkg when cloning the repository.
# You can edit it to your liking or delete completely. It will not
# be recreated.
# Creating this file can be also prevented by adding an option
# "skip_hooks = True" into the fedpkg's config file; [fedpkg] section.
_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
```
I think it would be useful to synchronize it as much as possible because the user might be switching from one tool to the other, and artifacts from fedpkg srpm/mockbuild would not be nicely ignored.
The differences I've found so far:
fedpkg clone
populates a.git/hooks/pre-push
fedpkg clone
populates a.git/info/exclude
fedpkg
sets up some additional git-configs, but these might be skipped.I think it would be useful to synchronize it as much as possible because the user might be switching from one tool to the other, and artifacts from
fedpkg srpm/mockbuild
would not be nicely ignored.