You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting many of those chdir warnings. To stop them, I removed the surrounding Dir.chdir @git_path do so this:
Dir.chdir@git_pathdo# This is fast, but only works on locally checked out branches`git show-ref --verify --quiet 'refs/heads/#{branch}'`returntrueif $?.exitstatus == 0# This is slow and will only get called for remote branches.result=`git ls-remote --heads origin 'refs/heads/#{branch}'`returnresult.strip.length != 0end
becomes this:
# This is fast, but only works on locally checked out branches`git --git-dir #{@git_path}/.git show-ref --verify --quiet 'refs/heads/#{branch}'`returntrueif $?.exitstatus == 0# This is slow and will only get called for remote branches.result=`git --git-dir #{@git_path}/.git ls-remote --heads origin 'refs/heads/#{branch}'`returnresult.strip.length != 0
The text was updated successfully, but these errors were encountered:
I was getting many of those chdir warnings. To stop them, I removed the surrounding
Dir.chdir @git_path do
so this:becomes this:
The text was updated successfully, but these errors were encountered: