That looks good (by inspection). My only concern is the branch deletion in the non-bare update.
First of all, * should be escaped. It seems to work OK with gnu grep, but it would be better to be explicit. (grep(1) says that only ?+{|() loose their meta-meaning in basic regexps.) Second, why delete the other branches at all? I'd rather have a complete clone. Just the checkout ought to be enough. Otherwise, cool. -JimC -- James Cloos <cl...@jhcloos.com> OpenPGP: 1024D/ED7DAEA6