topgit
topgit copied to clipboard
TopGit doesn't work in a linked git worktree
/usr/bin/tg: line 118: /home/robin/git/foo/.git/worktrees/foo.2/hooks/pre-commit+: No such file or directory
chmod: cannot access '/home/robin/git/foo/.git/worktrees/foo.2/hooks/pre-commit+': No such file or directory
Workaround: add
if [ -f ".git" ]; then
return
fi
to the start of setup_hook
in tg.sh
.