GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — check-case-conflict doesn't notice directory name conflicts · Issue #70 · pre-commit/pre-commit-hooks

check-case-conflict doesn't notice directory name conflicts #70

New issue
Copy link
New issue
Copy link
Closed
#575
Closed
check-case-conflict doesn't notice directory name conflicts#70
#575
Copy link

Description

@andyjack
andyjack
opened on Jun 17, 2015
Issue body actions
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

    new file:   TEST/foo
    new file:   test/bar

$ git commit -m "Test"
Check for case conflicts...................................................................................Passed
[master (root-commit) 6931ba5] Test
 2 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 TEST/foo
 create mode 100644 test/bar

$ cat .pre-commit-config.yaml
- repo: git://github.com/pre-commit/pre-commit-hooks
  sha: '0d88124ef6343fbbc6c9d2872853f73546c98a3f'
  hooks:
      - id: check-case-conflict

A conflict such as Test/foo and test/foo is caught though.

Reacted by Sergio Valverde

Activity

  1. guykisel commented on Jun 17, 2015

    @guykisel
    guykisel
    on Jun 17, 2015
    Contributor
    More actions

    Whoops, I think this is my fault. This is a use case I didn't think of.

    To fix this I'm thinking that when we generate the set of relevant files to check for conflicts, we should also add to the set all of the parent directories/paths of those relevant files. This has the potential to get messy/inefficient though.

  2. dizel3d commented on Oct 26, 2020

    @dizel3d
    dizel3d
    on Oct 26, 2020
    More actions

    @guykisel Has it been fixed?

  3. asottile commented on Oct 26, 2020

    @asottile
    asottile
    on Oct 26, 2020
    Member
    More actions

    @dizel3d it has not, that is why this issue is still open

  4. slsyy
    added 3 commits that reference this issue on Mar 19, 2021

    check also directories in check_case_conflict

    This issue will close once commit 9a35b62 is merged into the 'master' branch.
    9a35b62

    check also directories in check_case_conflict

    This issue will close once commit e567150 is merged into the 'master' branch.
    e567150

    check also directories in check_case_conflict

    This issue will close once commit fd797fa is merged into the 'master' branch.
    fd797fa
  5. asottile
    added a commit that references this issue on Apr 4, 2021

    check also directories in check_case_conflict

    This issue will close once commit f681234 is merged into the 'master' branch.
    f681234
  6. asottile
    closed this as completedin #575on Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.