Skip to content

Commit

Permalink
Merge pull request #3223 from efiop/3107
Browse files Browse the repository at this point in the history
hooks: checkout: fix incorrect dvc repo detection
  • Loading branch information
efiop authored Jan 23, 2020
2 parents da6399d + f6f931b commit ad6e58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/scm/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def list_all_commits(self):
def _install_hook(self, name, cmd):
command = (
'[ "$3" = "0" ]'
' || [ -z "$(git ls-files .dvc)" ]'
' || [ -z "$(git ls-files --full-name .dvc)" ]'
" || exec dvc {}".format(cmd)
)

Expand Down

0 comments on commit ad6e58a

Please sign in to comment.