Suppress warning message about missing magit-libgit
https://bugs.gentoo.org/910593

--- lisp/magit-core.el
+++ lisp/magit-core.el
@@ -41,7 +41,8 @@
 (require 'magit-transient)
 (require 'magit-autorevert)
 
-(when (magit--libgit-available-p)
+(when (and (not magit-inhibit-libgit)
+           (magit--libgit-available-p))
   (condition-case err
       (require 'magit-libgit)
     (error
