diff --git a/git-hooks/post-checkout b/git-hooks/post-checkout
index e491e8f..12c8ee6 100755
--- a/git-hooks/post-checkout
+++ b/git-hooks/post-checkout
@@ -18,5 +18,5 @@ if [[
 ]]; then
   echo "rebuilding sourcemaps"
   cd IPython/html
-  fab css || echo "failed to compile css"
+  invoke css || echo "failed to compile css"
 fi