Upgrade to git-utils 0.12

This commit is contained in:
Kevin Sawicki 2013-04-09 12:04:31 -07:00
parent fe1b4c71a3
commit c9e1f89b60
2 changed files with 2 additions and 6 deletions

View File

@ -7,7 +7,7 @@
"ctags": "0.3.0",
"oniguruma": "0.8.0",
"mkdirp": "0.3.5",
"git-utils": "0.11.0",
"git-utils": "0.12.0",
"underscore": "1.4.4",
"d3": "3.0.8",
"coffee-cache": "0.1.0",

View File

@ -95,11 +95,7 @@ class Git
@isStatusNew(@getPathStatus(path))
relativize: (path) ->
workingDirectory = @getWorkingDirectory()
if workingDirectory and path.indexOf("#{workingDirectory}/") is 0
path.substring(workingDirectory.length + 1)
else
path
@getRepo().relativize(path)
getShortHead: ->
@getRepo().getShortHead()