     atom.project.getRepo().getReferences().heads.length
 
   fetch: ->
-    git.incrementTaskCounter()
-    git.remoteFetch 'origin', ->
-      git.decrementTaskCounter()
+    git.cmd 'fetch'
 
   checkoutBranch: ->
-    @branchList.checkout_branch
+    @branchList.checkoutBranch
 
   stash: ->
-    git.git 'stash'
+    git.cmd 'stash'
 
   stashPop: ->
-    git.git 'stash pop'
+    git.cmd 'stash pop'
 
   # Internal: Initiate a new commit.
   initiateCommit: ->
-    if atom.config.get('atomatigit.pre_commit_hook') isnt ''
-      atom.workspaceView.trigger(atom.config.get('atomatigit.pre_commit_hook'))
+    if atom.config.get('atomatigit.PRE_COMMIT_HOOK') isnt ''
+      atom.workspaceView.trigger(atom.config.get('atomatigit.PRE_COMMIT_HOOK'))
 
     fs.writeFileSync(@commitMessagePath(), '')
 

  initiateCreateBranch: ->
    @trigger 'need_input',
      query: 'Branch name'
      callback: (name) ->
        git.createBranch name, ->
          git.git "checkout #{name}"

  # Public: Initiate a user defined git command.
  initiateGitCommand: ->

  #
  # Returns the active selection as {Object}.
  selection: ->
    @activeList.selection()

  leaf: ->
    @activeList.leaf()

  # Internal: The commit message file path.
  #
