Skip to content

Commit

Permalink
base/pkg/git.jl: don't shell out to find .git dir [fixes JuliaLang#4888]
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored and mschauer committed Jan 28, 2014
1 parent 7789032 commit 15ae585
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/pkg/git.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import Base: shell_escape
function dir(d)
g = joinpath(d,".git")
isdir(g) && return g
c = `git rev-parse --git-dir`
isempty(d) || (c = `sh -c "cd $(shell_escape(d)) && $(shell_escape(c))"`)
normpath(d,Base.readchomp(c))
normpath(d, Base.readchomp(setenv(`git rev-parse --git-dir`, dir=d)))
end

function git(d)
Expand Down

0 comments on commit 15ae585

Please sign in to comment.