     args: ['status']
     options:
       cwd: dir
-    stdout: (data) =>
+    stdout: (data) ->
       prepFile data.toString()
-    stderr: (data) =>
+    stderr: (data) ->
       new StatusView(type: 'alert', message: data.toString())
   })
 

    .open(commitFilePath(), split: split, activatePane: true)
    # ::open returns a promise resolving to the editor
    .done (editor) -> commitEditor = editor
  watcher = fs.watch commitFilePath(), (event) =>
    commit() if event is 'change'

commit = ->

    args: args
    options:
      cwd: dir
    stdout: (data) ->
      atom.workspace.destroyActivePane()
      currentPane.activate()
      new StatusView(type: 'success', message: data.toString())
      # reset editor for commitFile
      currentEditor = null
      atom.workspaceView.trigger 'core:save'
    stderr: (data) ->
      new StatusView(type: 'alert', message: data.toString())
      atom.beep()
  })
