Merge pull request #5066 from adrianlee44/patch-1

Fix getOriginUrl calling itself
This commit is contained in:
Kevin Sawicki
2015-01-14 15:52:25 -08:00

View File

@@ -33,7 +33,7 @@ Task = require './task'
#
# ```coffee
# git = atom.project.getRepo()
# console.log git.getOriginUrl()
# console.log git.getOriginURL()
# ```
#
# ### Requiring in packages
@@ -234,8 +234,8 @@ class GitRepository
# for, only needed if the repository has submodules.
getOriginURL: (path) -> @getConfigValue('remote.origin.url', path)
getOriginUrl: (path) ->
deprecate("Use ::getOriginURL instead.")
@getOriginUrl()
deprecate 'Use ::getOriginURL instead.'
@getOriginURL(path)
# Public: Returns the upstream branch for the current HEAD, or null if there
# is no upstream branch for the current HEAD.