objective-git icon indicating copy to clipboard operation
objective-git copied to clipboard

Fixes crash caused by GTRepository dealloc

Open arguiot opened this issue 6 years ago • 0 comments

When the system calls -[GTRepository dealloc] and the git_repository is empty, but still exists, the app crashes.

Here is a screenshot of the debug session: Capture d’écran 2019-05-16 à 20 27 09

To fix this, the function is simply checking if the workdir property of the git_repository object isn't empty before cleaning the repo.

This PR fixes #689

arguiot avatar May 16 '19 12:05 arguiot