<div dir="ltr">Hi, <div><br></div><div>Can anyone delete the <a href="https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser">https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser</a> repo for me please?</div><div><br></div><div>I'm repacking it using the suggested workflow afresh. Details enclosed below. Thx. <br><br><div class="gmail_quote"><div dir="ltr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Tong Sun</strong> <br>Date: Sat, Jun 30, 2018 at 3:24 PM<br>Subject: Re: Code review: golang-github-danverbraganza-varcaser<br>To: Anthony Fok <<a href="mailto:foka@debian.org">foka@debian.org</a>><br></div><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 25, 2018 at 1:28 PM Anthony Fok 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"><br>
> Moreover, I'm thinking to repack this module from scratch again as<br>
> well, following the old workflow only too, after my second package.<br>
> Do you think it'll be a big deal if I **force** push my git, so that<br>
> <a href="https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser" rel="noreferrer" target="_blank">https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser</a><br>
> contains *only* a *clean* history of old workflow?<br>
<br>
I knew you'd have to do a force push sooner or later, so I already<br>
made the necessary changes on Salsa a few days ago.  ;-)<br>
<br>
The various branches on Debian Salsa are normally protected from<br>
forced push, but I have already unprotected the upstream and debian/*<br>
branches at <a href="https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser" rel="noreferrer" target="_blank">https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser</a>,<br>
so feel free to re-push them as necessary.<br></blockquote><div> </div><div>So I repack it from scratch again as I can't make the new workflow works (ref the previous email). <br></div><div>However, when it comes to force pushing, here is what I get:</div><div><br></div><div><div>$ gbp push --verbose</div><div>gbp:debug: ['git', 'rev-parse', '--show-cdup']</div><div>gbp:debug: ['git', 'rev-parse', '--is-bare-repository']</div><div>gbp:debug: ['git', 'rev-parse', '--git-dir']</div><div>gbp:debug: ['git', 'symbolic-ref', 'HEAD']</div><div>gbp:debug: ['git', 'show-ref', 'refs/heads/master']</div><div>gbp:debug: ['git', 'config', 'branch.master.remote']</div><div>gbp:debug: ['git', 'tag', '-l', 'debian/0.0_git20151108.ce61ec4-1']</div><div>gbp:debug: ['git', 'tag', '-l', 'upstream/0.0_git20151108.ce61ec4']</div><div>gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'upstream/0.0_git20151108.ce61ec4^{commit}']</div><div>gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'refs/heads/upstream']</div><div>gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/pristine-tar']</div><div>gbp:debug: ['git', 'log', '--pretty=format:%H', '--grep=pristine-tar .* golang-github-danverbraganza-varcaser_0.0~git20151108.ce61ec4.orig.tar.*', 'pristine-tar', '--']</div><div>gbp:debug: Found pristine-tar commit at 'd7a6fcc6da39967be98fafef483870f0c8210ca3'</div><div>gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'd7a6fcc6da39967be98fafef483870f0c8210ca3^{commit}']</div><div>gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'refs/heads/pristine-tar']</div><div>gbp:info: Pushing upstream/0.0_git20151108.ce61ec4 to origin</div><div>gbp:debug: ['git', 'push', 'origin', 'tag', 'upstream/0.0_git20151108.ce61ec4']</div><div>gbp:error: Error running git push: To salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git</div><div> ! [rejected]        upstream/0.0_git20151108.ce61ec4 -> upstream/0.0_git20151108.ce61ec4 (already exists)</div><div>error: failed to push some refs to 'git@salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git'</div><div>hint: Updates were rejected because the tag already exists in the remote.</div><div>gbp:info: Pushing refs/heads/upstream to origin:refs/heads/upstream</div><div>gbp:debug: ['git', 'push', 'origin', 'refs/heads/upstream:refs/heads/upstream']</div><div>gbp:error: Error running git push: To salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git</div><div> ! [rejected]        upstream -> upstream (fetch first)</div><div>error: failed to push some refs to 'git@salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git'</div><div>hint: Updates were rejected because the remote contains work that you do</div><div>hint: not have locally. This is usually caused by another repository pushing</div><div>hint: to the same ref. You may want to first integrate the remote changes</div><div>hint: (e.g., 'git pull ...') before pushing again.</div><div>hint: See the 'Note about fast-forwards' in 'git push --help' for details.</div><div>gbp:info: Pushing refs/heads/pristine-tar to origin:refs/heads/pristine-tar</div><div>gbp:debug: ['git', 'push', 'origin', 'refs/heads/pristine-tar:refs/heads/pristine-tar']</div><div>gbp:error: Failed to push some refs.</div></div><div><br></div><div><div>$  git push -u --all -v --force</div><div>Pushing to git@salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git</div><div>Counting objects: 30, done.</div><div>Delta compression using up to 2 threads.</div><div>Compressing objects: 100% (22/22), done.</div><div>Writing objects: 100% (30/30), 10.85 KiB | 0 bytes/s, done.</div><div>Total 30 (delta 1), reused 0 (delta 0)</div><div>remote: GitLab: You are not allowed to force push code to a protected branch on this project.</div><div>To salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git</div><div> = [up to date]      pristine-tar -> pristine-tar</div><div> ! [remote rejected] upstream -> upstream (pre-receive hook declined)</div><div> ! [remote rejected] master -> master (pre-receive hook declined)</div><div>Branch pristine-tar set up to track remote branch pristine-tar from origin by rebasing.</div><div>error: failed to push some refs to 'git@salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git'</div></div><div><br></div><div>Can you just simply remove that salsa.debian repo, and I'll redo</div><div><br></div><div><b style="font-weight:normal" id="gmail-m_-656204331792706959gmail-docs-internal-guid-b430bb32-5225-e8c4-3c4e-f9059c905ca5"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Calibri;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">dh-make-golang create-salsa-project golang-github-danverbraganza-varcaser</span></p></b><br class="gmail-m_-656204331792706959gmail-Apple-interchange-newline">I think that might be the simplest solution. </div><div><br></div><div>thx</div><div><br></div></div></div>
</div></div></div>