--
You received this message because you are subscribed to the Google Groups "magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magit+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am suffering from this bug as well.
Why run git as root? In my case I use git to track changes in /usr/local/etc (its FreeBSD box), which is a root-owned segment of file system hierarchy.
Other Magit functions like stage/unstage, revert hunk etc work well, except Commit. So I must perform 'git commit' manually in shell at the moment.
The issue was investigated. See: https://github.com/magit/magit/issues/2672
The solution is to configure with-editor to explicitly use Bash:
(setq with-editor-sleeping-editor "\
bash -c '\
echo \"WITH-EDITOR: $$ OPEN $0\"; \
sleep 604800 & sleep=$!; \
trap \"kill $sleep; exit 0\" USR1; \
trap \"kill $sleep; exit 1\" USR2; \
wait $sleep'")
Regards,
Andrew