From: Junio C Hamano Date: Wed, 18 Nov 2009 07:35:43 +0000 (-0800) Subject: Meta/cook.sh: grab the latest out of index, not tree X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c3ab94a84663281d5d94f667a7695c58f5e2e6;p=thirdparty%2Fgit.git Meta/cook.sh: grab the latest out of index, not tree --- 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.