       handler(new GitNotFoundError, null)
 
   @checkoutSide: (sideName, filepath, callback) ->
+    return unless @_checkHealth(callback, filepath)
+
     proc = @process({
       command: GitCmd,
       args: ['checkout', "--#{sideName}", filepath],

    })

  @isRebasing: ->
    root = @_repoGitDir()
    return false unless root?


      callback(new GitNotFoundError)

  @add: (filepath, callback) ->
    return unless @_checkHealth(callback, filepath)

    @process({
      command: GitCmd,
      args: ['add', filepath],
