From 35c3ab94a84663281d5d94f667a7695c58f5e2e6 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 17 Nov 2009 23:35:43 -0800 Subject: [PATCH] Meta/cook.sh: grab the latest out of index, not tree --- cook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cook.sh b/cook.sh index 56904fa59f..793b724ea9 100755 --- a/cook.sh +++ b/cook.sh @@ -189,7 +189,7 @@ eval $(date +"monthname=%b month=%m year=%Y date=%d dow=%a") lead="whats/cooking/$year/$month" issue=$( cd Meta && - git ls-tree -r --name-only HEAD "$lead" | tail -n 1 + git ls-files "$lead" | tail -n 1 ) if test -n "$issue" then @@ -203,7 +203,7 @@ mkdir -p "Meta/$lead" last=$( cd Meta && - git ls-tree -r --name-only HEAD "whats/cooking" | tail -n 1 + git ls-files "whats/cooking" | tail -n 1 ) # We may have a half-written one already.