From 63ad6b1a66ca1cdd18ea0da21b34e88b611f07ef Mon Sep 17 00:00:00 2001 From: Adrian Lee Date: Wed, 14 Jan 2015 15:44:59 -0800 Subject: [PATCH] Fix getOriginUrl calling itself --- src/git-repository.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git-repository.coffee b/src/git-repository.coffee index e0b0c46a2..b43782d6d 100644 --- a/src/git-repository.coffee +++ b/src/git-repository.coffee @@ -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.