fi
fi
+ summary_counter=0
echo ""
if [ -z "$rewind_only" ]; then
echo "Revisions details."
generate_gitweb_link
git rev-list --pretty -n1 $rev
git diff-tree --stat --summary --find-copies-harder $rev | tail -n +2
+ summary_counter=`expr $summary_counter + 1`
done
newrev=$save_newrev
# is effectively a random revision at this point - the user will be
# interested in what this revision changed - including the undoing of
# previous revisions in the case of non-fast forward updates.
- echo ""
- echo "Summary of changes:"
- git diff-tree --stat --summary --find-copies-harder $oldrev..$newrev
+ if [ $summary_counter -gt 1 ]; then
+ echo ""
+ echo "Summary of changes:"
+ git diff-tree --stat --summary --find-copies-harder $oldrev..$newrev
+ fi
}
#
projectdesc="UNNAMED PROJECT"
fi
-recipients=$(git repo-config hooks.mailinglist)
-announcerecipients=$(git repo-config hooks.announcelist)
-envelopesender=$(git-repo-config hooks.envelopesender)
+recipients=$(git config hooks.mailinglist)
+announcerecipients=$(git config hooks.announcelist)
+envelopesender=$(git-config hooks.envelopesender)
# --- Main loop
# Allow dual mode: run from the command line just like the update hook, or if