• Artyom@lemm.ee
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    23 days ago

    Presumably they picked the repo because it will auto-merge MRs if they pass testing even without human approvals. Glad they caught it and good work to everyone involved, but I’m gonna file this one under my “fuck around, find out” folder.

    • Thinker@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      23 days ago

      Ding ding ding! We have a winner!

      It’s a third-party GitHub Action that is passing the branch name directly to Bash. So to be clear, not GitHub’s fault.

  • BehindTheBarrier@programming.dev
    link
    fedilink
    English
    arrow-up
    12
    ·
    23 days ago

    I never considered branch names to be a vector, but in hindsight it makes total sense when put into a workflow like that. What possibly surprised me even more, was that branch names weren’t limited to basic characters or at least no special signs. I obviously see the case for all the extended characters outside the latin alphabet, such as Chinese characters, but I totally expected restrictions on special symbols like ", ', /, \, ;, etc.

    • Traister101@lemmy.today
      link
      fedilink
      arrow-up
      1
      ·
      23 days ago

      / is used to separate the same branch in different repos. For example origin/main and remote/main. Surprising that the other stuff is legal though

      • bamboo@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        23 days ago

        You can still freely use / in branch names. Having remote branches available as remote/branch is just a convenience, and you can delete or modify them locally. It’s common to use / in branch names, too.

      • BehindTheBarrier@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        22 days ago

        That’s true, i didn’t think about that when I wrote it.

        I’m used to the world being pretty simple though, so for me that slash has always just been a visual representation of the location of the branch if that makes sense. We don’t have to have a slash in the branch name, only to use it to represent where that branch is located. It could have been something git only used for presentation.

    • Azzu@lemm.ee
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      23 days ago

      Pull requests are not a feature of git, you probably thought they were?

        • Azzu@lemm.ee
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          22 days ago

          GitHub is completely unrelated to git.

          git-send-email is not even very similar to a pull request, just tangentially related but very different conceptually.