From 34f58e11d18d7959cc5fc7be5a05d0ba6f6dee5f Mon Sep 17 00:00:00 2001 From: Guille Polito Date: Mon, 9 Apr 2018 17:34:44 +0200 Subject: [PATCH] Initialize libgit on loading --- .../LGitLibrary.class/class/initialize.st | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/LibGit-Core.package/LGitLibrary.class/class/initialize.st b/LibGit-Core.package/LGitLibrary.class/class/initialize.st index 07f0861b..a0b9e76c 100644 --- a/LibGit-Core.package/LGitLibrary.class/class/initialize.st +++ b/LibGit-Core.package/LGitLibrary.class/class/initialize.st @@ -1,5 +1,8 @@ class initialization initialize - "Required to reset the Initialized flag on image startup" - - Smalltalk addToStartUpList: self \ No newline at end of file + "Required to reset the Initialized flag on image startup. + Force libgit initialization since we just installed libgit. + Otherwise this would cause a libgit crash" + + Smalltalk addToStartUpList: self. + self uniqueInstance initializeLibGit2 \ No newline at end of file