summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
authorAndy Parkins <andyparkins@gmail.com>2007-02-14 11:20:32 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-14 18:14:26 (GMT)
commit9a894e8e7c85794d39745eb83462a2001816ac3b (patch)
tree9f5d0aed171d2892b98e03d536bea84c1cba7d92 /templates/hooks--update
parentf5d43056a1b2487d032682a70c58f04d159718d7 (diff)
downloadgit-9a894e8e7c85794d39745eb83462a2001816ac3b.zip
git-9a894e8e7c85794d39745eb83462a2001816ac3b.tar.gz
git-9a894e8e7c85794d39745eb83462a2001816ac3b.tar.bz2
The "table-of-contents" in the update hook script should match the body
44478d99ee0 introduced a filter using "git-rev-parse --not --all" to the log display to prevent the display of revisions already in the repository. However, the table of contents generation didn't get that same update. This patch fixes that. The table of contents before the log and the log now both display the same list of revisions. Signed-off-by: Andy Parkins <andyparkins@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'templates/hooks--update')
-rw-r--r--templates/hooks--update4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/hooks--update b/templates/hooks--update
index a7cf604..fd1f73d 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -57,7 +57,7 @@ announcerecipients=$(git-repo-config hooks.announcelist)
allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
# --- Check types
-newrev_type=$(git-cat-file -t "$newrev")
+newrev_type=$(git-cat-file -t $newrev)
case "$refname","$newrev_type" in
refs/tags/*,commit)
@@ -165,7 +165,7 @@ case "$refname_type" in
baserev=$(git-merge-base $oldrev $newrev)
# Commit with a parent
- for rev in $(git-rev-list $newrev ^$baserev)
+ for rev in $(git-rev-parse --not --all | git-rev-list --stdin $newrev ^$baserev)
do
revtype=$(git-cat-file -t "$rev")
echo " via $rev ($revtype)"