Skip to content

ng new --skip-git is ignored #7686

@rol-dave-overall

Description

@rol-dave-overall

Bug Report or Feature Request (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.1
node: 6.11.2
os: win32 x64

Repro steps.

Execute ng new --directory . --skip-git in a folder which already contains a .gitignore file reports the error. Alternatively execute ng new --skip-git and upon looking in the folder a .gitignore file is still created.

The log given by the failure.

error! .gitignore already exists.

Desired functionality.

The ng new command should comply with the --skip-git option and not attempt to create a .gitignore file.

This was not an issue is version 1.3.2 and therefore must be a regression bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentseverity3: broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions