       callback(new GitNotFoundError)
 
   @add: (filepath, callback) ->
+    return unless @_checkHealth(callback, filepath)
+
     @process({
       command: GitCmd,
       args: ['add', filepath],

      handler(new GitNotFoundError, null)

  @checkoutSide: (sideName, filepath, callback) ->
    proc = @process({
      command: GitCmd,
      args: ['checkout', "--#{sideName}", filepath],

    })

  @isRebasing: ->
    return unless @_checkHealth (e) ->
      atom.notifications.addError e.message

    root = @_repoGitDir()
    return false unless root?

