ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Wiki: Backporting A Change To A Release Branch

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Mon, 26 Sep 2022 13:18:51 -0700
Did you clone your repository with `--single-branch`? If so you might need to run `git fetch upstream release-4.0`.

On 9/26/22 1:00 PM, chuck c wrote:
wireshark$ git remote -v
downstream      git@xxxxxxxxxx:chuckcraft/wireshark.git (fetch)
downstream      git@xxxxxxxxxx:chuckcraft/wireshark.git (push)
upstream        git@xxxxxxxxxx:wireshark/wireshark.git (fetch)
upstream        git@xxxxxxxxxx:wireshark/wireshark.git (push)

wireshark$ git branch -r -l | grep -i upstream
   upstream/master

wireshark$ git checkout -b github_4_0_qt6 upstream/release-4.0
fatal: 'upstream/release-4.0' is not a commit and a branch 'github_4_0_qt6' cannot be created from it

(link to the wiki page the original email referenced: https://wiki.wireshark.org/Development/SubmittingPatches#backporting-a-change-to-a-release-branch <https://wiki.wireshark.org/Development/SubmittingPatches#backporting-a-change-to-a-release-branch>)

On Mon, Sep 26, 2022 at 2:43 PM Jaap Keuter <jaap.keuter@xxxxxxxxx <mailto:jaap.keuter@xxxxxxxxx>> wrote:

    Hi,

    Yes, the text is still relevant, in case you’re looking to back port a change from master to release-X.Y.

    What you’re seem to be looking at is making a change in release-4.0 only.
    So, checkout release-4.0 first. Then create a branch from that and put your change on there and push that.

    Regards,
    Jaap


    On 26 Sep 2022, at 00:52, chuck c <bubbasnmp@xxxxxxxxx <mailto:bubbasnmp@xxxxxxxxx>> wrote:

    Is this section of the Wiki still accurate?

    (substituting  "release-4.0" for "master-X.Y"

    "Create and checkout a new branch with a name related to the type of change (e.g. the bug number you're fixing or the dissector you're working on):
      git checkout -b my-branch-name upstream/master-X.Y
    where "master-X.Y" is the release branch to which to backport the change.

    This creates a branch named "my-branch-name" based on the master-X.Y branch in the official repository."

    Or how best to make a change to:
    https://gitlab.com/wireshark/wireshark/-/blob/release-4.0/.github/workflows/windows.yml <https://gitlab.com/wireshark/wireshark/-/blob/release-4.0/.github/workflows/windows.yml>
    that doesn't apply to master.

    thanks
    chuckc
    ___________________________________________________________________________
    Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx <mailto:wireshark-dev@xxxxxxxxxxxxx>>
    Archives: https://www.wireshark.org/lists/wireshark-dev <https://www.wireshark.org/lists/wireshark-dev>
    Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev <https://www.wireshark.org/mailman/options/wireshark-dev>
    mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe <mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe>

    ___________________________________________________________________________
    Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx <mailto:wireshark-dev@xxxxxxxxxxxxx>>
    Archives: https://www.wireshark.org/lists/wireshark-dev <https://www.wireshark.org/lists/wireshark-dev>
    Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev <https://www.wireshark.org/mailman/options/wireshark-dev>
                  mailto:wireshark-dev-request@xxxxxxxxxxxxx <mailto:wireshark-dev-request@xxxxxxxxxxxxx>?subject=unsubscribe


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe