• lseif
    link
    fedilink
    arrow-up
    3
    ·
    9 days ago

    surely Git warns about stuff like this when you clone it, right ?

    • DefederateLemmyMl@feddit.nl
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 days ago

      It tells you there’s a name clash, and then it clones it anyway and you end up with the contents of README.MD in README.md as an unstaged change.

      • lseif
        link
        fedilink
        arrow-up
        2
        ·
        8 days ago

        sounds like actually a good solution … tho doesnt sound like it would work for more than 2 similarly-named files

        • DefederateLemmyMl@feddit.nl
          link
          fedilink
          arrow-up
          2
          ·
          8 days ago

          I don’t think it’s intended as a “solution”, it just lets the clobbering that is caused by the case insensitiveness happen.

          So git just goes:

          If you add a third or fourth file … it would just continue, and file gets checked out first gets the filename and whichever file gets checked out last, gets the content.

          • lseif
            link
            fedilink
            arrow-up
            1
            ·
            8 days ago

            thats better than Git just choosing a file to keep.