 
   stageFile: (event, element) ->
     repoPath = element.closest('li').data('path')
-    filePath = path.join GitBridge.getActiveRepo().getWorkingDirectory(), repoPath
+    filePath = path.join GitBridge.getActiveRepo(repoPath).getWorkingDirectory(), repoPath
 
     for e in atom.workspace.getTextEditors()
       e.save() if e.getPath() is filePath

    return if state.isEmpty()

    fullPath = editor.getPath()
    repoPath = GitBridge.getActiveRepo()?.relativize fullPath
    return unless repoPath?

    return unless _.contains state.conflictPaths(), repoPath


  navigate: (event, element) ->
    repoPath = element.find(".path").text()
    fullPath = path.join GitBridge.getActiveRepo(repoPath).getWorkingDirectory(), repoPath
    atom.workspace.open(fullPath)

  minimize: ->
