News for hackers. Stuff that matters.
Re:Yipit Django Blog: Why You Need a Git Pre-Commit Hook by spulec on Wednesday November 16, 2011 @05:32PM (#3245410)
Cool. We had looked at doing it that way, but decided that we wanted to have the flexibility of accessing the entire repo so that we can run things like "./manage.py validate" and quick unit tests.

A leftover pdb.set_trace() that snuck into production is the exact reason we first added this :)

Re:Yipit Django Blog: Why You Need a Git Pre-Commit Hook by manojlds on Wednesday November 16, 2011 @06:18PM (#3245629)
So wouldn't:

git checkout-index --prefix=../temp/ --all

work?

Re:Yipit Django Blog: Why You Need a Git Pre-Commit Hook by spulec on Wednesday November 16, 2011 @06:31PM (#3245682)
Absolutely. Stashing seemed like the cleaner choice to me, but either would work.