Skip to content

dvc install on windows terminal results in bad hooks #7700

@frerksaxen

Description

@frerksaxen

Bug Report

Description

dvc install
git commit -a -m "so sad"

on windows results in:
error: cannot spawn .git/hooks/pre-commit: No such file or directory

Resolve

The file .git/hooks/pre-commit starts with the line #!None
I could resolve it by changing pre-commit, pre-push, and post-checkout first line to #!/bin/sh

Environment information

git version 2.34.1.windows.1
DVC version: 2.10.2 (pip)

Metadata

Metadata

Assignees

Labels

P: windowsRelated to the Platform: WindowsbugDid we break something?

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions