Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nit-picker12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index 309fb5b..63f71aa 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -87,10 +87,14 @@ while pgrep -x ii >/dev/null; do
# shellcheck disable=SC2154
if ! git -C "${git_dir}" cat-file -t "${git_rev}" 2> /dev/null | \
grep -qxF 'commit'; then
- printf 'commit %s is missing from repository %s\n' \
- "${git_rev}" \
- "${git_repo}" \
- | irc_say
+ git -C "${git_dir}" fetch --all -p >/dev/null 2>&1
+ if ! git -C "${git_dir}" cat-file -t "${git_rev}" 2> /dev/null | \
+ grep -qxF 'commit'; then
+ printf 'commit %s is missing from repository %s\n' \
+ "${git_rev}" \
+ "${git_repo}" \
+ | irc_say
+ fi
fi
;;
*)