Skip to content

vue create <project> is unable to detect and install git hooks in parent .git dir  #2557

Open
@pravinpr

Description

@pravinpr

Version

3.0.1

Reproduction link

https://github.com/pravinpr/vue-create-git-hook-issue

Node and OS info

node 8.11.4 / npm 5.6.0 / MacOS High Sierra 10.13.6

Steps to reproduce

mkdir vue-create-git-hook-issue
cd vue-create-git-hook-issue
git init
mkdir java
echo "some other project" > java/README.md
vue create app

What is expected?

git hooks should have been installed in vue-create-git-hook-issue/.git/hooks/
or vue create should give option to specify where to install the git hooks

What is actually happening?

vue create app output contains below message

setting up Git hooks
can't find .git directory, skipping Git hooks installation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions