# HG changeset patch # User Meredith Howard # Date 1554275485 14400 # Node ID bdbfa576e84fbf305af99b70f0014895907e3c24 # Parent 96ce87777789e69e47b1489325ecb57a781514fa git likes to wait on hooks if you keep STD* open diff --git a/bin/git-ctags b/bin/git-ctags --- a/bin/git-ctags +++ b/bin/git-ctags @@ -26,6 +26,7 @@ opts = File.exists?(conf) ? "--options if running_hook fork and exit + [STDIN, STDOUT, STDERR].each(&:close) sleep 5 end @@ -53,7 +54,8 @@ git-ctags - run ctags on git tracked fil git ctags - echo 'git ctags hook 2>/dev/null' >> .git/hooks/post-checkout + echo 'git ctags hook 2>/dev/null' >> .git/hooks/post-checkout && + chmod +x $_ git checkout some/branch CTAGS_SKIP=1 git checkout some/branch