diff --git a/src/git-repository.coffee b/src/git-repository.coffee index b3a404a6e..064b86dd3 100644 --- a/src/git-repository.coffee +++ b/src/git-repository.coffee @@ -10,8 +10,8 @@ Task = require './task' # Extended: Represents the underlying git operations performed by Atom. # # This class shouldn't be instantiated directly but instead by accessing the -# `atom.project` global and calling `getRepo()`. Note that this will only be -# available when the project is backed by a Git repository. +# `atom.project` global and calling `getRepositories()`. Note that this will +# only be available when the project is backed by a Git repository. # # This class handles submodules automatically by taking a `path` argument to many # of the methods. This `path` argument will determine which underlying @@ -20,7 +20,7 @@ Task = require './task' # For a repository with submodules this would have the following outcome: # # ```coffee -# repo = atom.project.getRepo() +# repo = atom.project.getRepositories()[0] # repo.getShortHead() # 'master' # repo.getShortHead('vendor/path/to/a/submodule') # 'dead1234' # ``` @@ -30,7 +30,7 @@ Task = require './task' # ### Logging the URL of the origin remote # # ```coffee -# git = atom.project.getRepo() +# git = atom.project.getRepositories()[0] # console.log git.getOriginURL() # ``` #