Meta/cook.sh: grab the latest out of index, not tree
Junio C Hamano committed
Nov 17, 2009 at 23:35 UTC
35c3ab94a84663281d5d94f667a7695c58f5e2e6
1 file changed
+2
-2
cook.sh
+2
-2
@@ -189,7 +189,7 @@ eval $(date +"monthname=%b month=%m year=%Y date=%d dow=%a")
189
lead="whats/cooking/$year/$month"
190
issue=$(
191
cd Meta &&
192
- git ls-tree -r --name-only HEAD "$lead" | tail -n 1
192
+ git ls-files "$lead" | tail -n 1
193
)
194
if test -n "$issue"
195
then
@@ -203,7 +203,7 @@ mkdir -p "Meta/$lead"
203
204
last=$(
205
cd Meta &&
206
- git ls-tree -r --name-only HEAD "whats/cooking" | tail -n 1
206
+ git ls-files "whats/cooking" | tail -n 1
207
)
208
209
# We may have a half-written one already.