]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/cook.sh: grab the latest out of index, not tree
authorJunio C Hamano <gitster@pobox.com>
Wed, 18 Nov 2009 07:35:43 +0000 (23:35 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Nov 2009 07:35:43 +0000 (23:35 -0800)
cook.sh

diff --git a/cook.sh b/cook.sh
index 56904fa59fa4a646151b9487f203e169bf079c78..793b724ea917728db0c79fa0bb26df0d7cad08dd 100755 (executable)
--- 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.