Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4601

applyPatches reports a git error "fatal: ambiguous argument 'origin/patched'"


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • Windows

    • git-Spigot-f56e2e7-1748af8 (MC: 1.13.2)
    • Yes

      I am trying to build the source tree of Spigot using the provided script 'applyPatches.sh' from the repository hub.

      The script reports the following error during the build where '+' indicates the line executed with shell verbosity enabled:


      + git reset --hard origin/patched
       fatal: ambiguous argument 'origin/patched': unknown revision or path not in the working tree.
       Use '--' to separate paths from revisions, like this:
       'git <command> [<revision>...] -- [<file>...]'

      Git reports this as a fatal error but it does not halt the rest of the script which, although it does eventually fail:



      I don't know why the failure in the script is occurring yet but I'm not confident that this error from git is related to the script itself failing. I think that 'origin/patched' is a new branch that gets created once the script completes as intended and the reset is used to roll back any modifications that may have occurred that would cause additional patches to fail.

      Would someone knowledgeable about this confirm if this is related to my build failing?

            Unassigned Unassigned
            Zhro Matt D.
            0 Vote for this issue
            2 Start watching this issue