diff --git a/src/app/git.coffee b/src/app/git.coffee index c295f1c6d..21128dfbd 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -56,7 +56,10 @@ class Git @statusTask.off() @statusTask = null - @repo = null + if @repo? + @repo.release() + @repo = null + @unsubscribe() getWorkingDirectory: ->