• Fixing upstream branch after tagging

    From =?UTF-8?B?R3XDsGrDs24gR3XDsGrDs25zc@21:1/5 to All on Mon Dec 5 06:30:01 2022
    Hi list

    I am working on eric and I made a mistake while updating the git repository.

    Some paths have changed so files were not excluded correctly and now
    upstream and pristine-tar contain jquery*.js files.

    How can I remove the files after having tagged?
    I read that the pristine-tar branch should be removed [1]. Is that correct?

    Regards
    Gudjon

    1) https://go-team.pages.debian.net/workflow-changes.html

    <div dir="ltr"><div>Hi list</div><div><br></div><div>I am working on eric and I made a mistake while updating the git repository.</div><div><br></div><div>Some paths have changed so files were not excluded correctly and now upstream and pristine-tar
    contain jquery*.js files.</div><div><br></div><div>How can I remove the files after having tagged?</div><div>I read that the pristine-tar branch should be removed [1]. Is that correct?</div><div><br></div><div>Regards</div><div>Gudjon</div><div><br></div>
    <div>1) <a href="https://go-team.pages.debian.net/workflow-changes.html">https://go-team.pages.debian.net/workflow-changes.html</a></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrius Merkys@21:1/5 to All on Mon Dec 5 07:50:01 2022
    Hi Guðjón,

    On 2022-12-05 08:24, Guðjón Guðjónsson wrote:
    I am working on eric and I made a mistake while updating the git repository.

    Some paths have changed so files were not excluded correctly and now
    upstream and pristine-tar contain jquery*.js files.

    How can I remove the files after having tagged?
    I read that the pristine-tar branch should be removed [1]. Is that correct?

    I would suggest repacking the source package [2] (see starting from "Copyright"). Branches 'upstream' and 'pristine-tar' should not be
    modified manually.

    1) https://go-team.pages.debian.net/workflow-changes.html <https://go-team.pages.debian.net/workflow-changes.html>

    [2] https://wiki.debian.org/Repacking#Copyright

    Hope this helps,
    Andrius

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Julian Gilbey@21:1/5 to All on Mon Dec 5 14:10:01 2022
    On Mon, Dec 05, 2022 at 06:24:48AM +0000, Guðjón Guðjónsson wrote:
    Hi list
    I am working on eric and I made a mistake while updating the git repository. Some paths have changed so files were not excluded correctly and now upstream and pristine-tar contain jquery*.js files.
    How can I remove the files after having tagged?
    I read that the pristine-tar branch should be removed [1]. Is that correct? Regards
    Gudjon

    Hi Gudjon,

    It depends on whether you have pushed to a remote repository yet, or
    whether it's still only on your local machine. If you've already
    pushed, then you'll have to update your local versions and give it a
    different version number (for example, +ds2 rather than +ds1), doing a
    fresh gbp import-orig on the repacked source package.

    If you're still only on your local machine, this is an error I have
    made a number of times, only noticing after doing gpb import-orig. To
    fix it, you can roll back the gbp import-orig. With care, do the
    following (where git co is shorthand for git checkout):

    git co debian/unstable [or whatever your branch is]
    git log
    git reset --hard <commit ref of commit just before the gbp import-orig>

    git co upstream
    git log
    git reset --hard <commit ref of commit just before the gbp import-orig>

    git co pristine-tar
    git log
    git reset --hard <commit ref of commit just before the gbp import-orig>

    git tag -d upstream/<upstream version number of wrongly imported package>


    There is probably a better way to do it, but this has worked for me.

    Good luck!

    Julian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?R3XDsGrDs24gR3XDsGrDs25zc@21:1/5 to julian@d-and-j.net on Tue Dec 6 07:10:01 2022
    Thanks Andrius and Julian

    Forgot to mention that I had already pushed my changes.
    I will try to adapt to the new git standard but that will be my Christmas project.
    Julian, your solution with a new tag worked perfectly but I won't push my changes until it is lintian clean.

    Regards
    Gudjon


    On Mon, Dec 5, 2022 at 1:04 PM Julian Gilbey <julian@d-and-j.net> wrote:

    On Mon, Dec 05, 2022 at 06:24:48AM +0000, Guðjón Guðjónsson wrote:
    Hi list
    I am working on eric and I made a mistake while updating the git
    repository.
    Some paths have changed so files were not excluded correctly and now
    upstream
    and pristine-tar contain jquery*.js files.
    How can I remove the files after having tagged?
    I read that the pristine-tar branch should be removed [1]. Is that
    correct?
    Regards
    Gudjon

    Hi Gudjon,

    It depends on whether you have pushed to a remote repository yet, or
    whether it's still only on your local machine. If you've already
    pushed, then you'll have to update your local versions and give it a different version number (for example, +ds2 rather than +ds1), doing a
    fresh gbp import-orig on the repacked source package.

    If you're still only on your local machine, this is an error I have
    made a number of times, only noticing after doing gpb import-orig. To
    fix it, you can roll back the gbp import-orig. With care, do the
    following (where git co is shorthand for git checkout):

    git co debian/unstable [or whatever your branch is]
    git log
    git reset --hard <commit ref of commit just before the gbp import-orig>

    git co upstream
    git log
    git reset --hard <commit ref of commit just before the gbp import-orig>

    git co pristine-tar
    git log
    git reset --hard <commit ref of commit just before the gbp import-orig>

    git tag -d upstream/<upstream version number of wrongly imported package>


    There is probably a better way to do it, but this has worked for me.

    Good luck!

    Julian


    <div dir="ltr"><div>Thanks Andrius and Julian</div><div><br></div><div>Forgot to mention that I had already pushed my changes.</div><div>I will try to adapt to the new git standard but that will be my Christmas project.</div><div>Julian, your solution
    with a new tag worked perfectly but I won&#39;t push my changes until it is lintian clean.</div><div><br></div><div>Regards</div><div>Gudjon<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 5, 2022
    at 1:04 PM Julian Gilbey &lt;<a href="mailto:julian@d-and-j.net">julian@d-and-j.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Dec 05, 2022 at
    06:24:48AM +0000, Guðjón Guðjónsson wrote:<br>
    &gt; Hi list<br>
    &gt; I am working on eric and I made a mistake while updating the git repository.<br>
    &gt; Some paths have changed so files were not excluded correctly and now upstream<br>
    &gt; and pristine-tar contain jquery*.js files.<br>
    &gt; How can I remove the files after having tagged?<br>
    &gt; I read that the pristine-tar branch should be removed [1]. Is that correct?<br>
    &gt; Regards<br>
    &gt; Gudjon<br>

    Hi Gudjon,<br>

    It depends on whether you have pushed to a remote repository yet, or<br> whether it&#39;s still only on your local machine.  If you&#39;ve already<br> pushed, then you&#39;ll have to update your local versions and give it a<br> different version number (for example, +ds2 rather than +ds1), doing a<br> fresh gbp import-orig on the repacked source package.<br>

    If you&#39;re still only on your local machine, this is an error I have<br> made a number of times, only noticing after doing gpb import-orig.  To<br>
    fix it, you can roll back the gbp import-orig.  With care, do the<br> following (where git co is shorthand for git checkout):<br>

    git co debian/unstable  [or whatever your branch is]<br>
    git log<br>
    git reset --hard &lt;commit ref of commit just before the gbp import-orig&gt;<br>

    git co upstream<br>
    git log<br>
    git reset --hard &lt;commit ref of commit just before the gbp import-orig&gt;<br>

    git co pristine-tar<br>
    git log<br>
    git reset --hard &lt;commit ref of commit just before the gbp import-orig&gt;<br>

    git tag -d upstream/&lt;upstream version number of wrongly imported package&gt;<br>


    There is probably a better way to do it, but this has worked for me.<br>

    Good luck!<br>

       Julian<br>
    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)