Skip to content

Commit

Permalink
Merge pull request #5035 from bpoldrack/fix-gh-5030
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleam committed Oct 14, 2020
2 parents 7e5dca1 + 908d3e8 commit c8dd728
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion datalad/cmd.py
Expand Up @@ -1091,7 +1091,12 @@ def _get_bundled_path():
alongside = False
else:
annex_path = op.dirname(op.realpath(annex_fpath))
alongside = op.lexists(op.join(annex_path, 'git'))
bundled_git_path = op.join(annex_path, 'git')
# we only need to consider bundled git if it's actually different
# from default. (see issue #5030)
alongside = op.lexists(bundled_git_path) and \
bundled_git_path != op.realpath(find_executable('git'))

return annex_path if alongside else ''

@staticmethod
Expand Down

0 comments on commit c8dd728

Please sign in to comment.