<div dir="ltr">I just noticed a bot failure attributed to me due to this issue:<div><br></div><div><a href="http://lab.llvm.org:8011/#/builders/86/builds/3837">http://lab.llvm.org:8011/#/builders/86/builds/3837</a><br></div><div><br></div><div>I just sent email to the bot owner about this.</div><div><br></div><div>Since the error is coming from git, I'm not sure if there is a way to customize it, but unfortunately it is really not clear what is going on from the error message. Hopefully the next person to hit this will see my email when they search for this error message (which is what I tried when trying to diagnose it). My search only came up with some old emails from during the svn -> git migration when people didn't have commit access on git.</div><div><br></div><div>Thanks,</div><div>Teresa</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 8, 2020 at 8:49 AM Mehdi AMINI <<a href="mailto:joker.eph@gmail.com">joker.eph@gmail.com</a>> 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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 8, 2020 at 7:50 AM Teresa Johnson via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> 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"><div dir="ltr">Just discovered this is due to the rename of master to main:<div><a href="http://lists.llvm.org/pipermail/llvm-dev/2020-December/147176.html" target="_blank">http://lists.llvm.org/pipermail/llvm-dev/2020-December/147176.html</a><br></div><div>I completely missed this email thread.</div><div><br></div><div>Pushing with 'main' worked for me.</div><div><br></div><div>Oddly, my</div><div> git pull --rebase origin master<br></div><div>worked just fine.</div></div></blockquote><div><br></div><div>This is because until the end of January we continue to mirror the main branch to a read-only master.</div><div><br></div><div>Cheers,</div><div><br></div><div>-- </div><div>Mehdi </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Is there a way to make the error clearer?</div><div><br></div><div>Thanks,</div><div>Teresa</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 8, 2020 at 7:38 AM Teresa Johnson <<a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a>> 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"><div dir="ltr">I tried pushing a change last night and got an error that I haven't seen before, and cannot figure out what is going on. Has anyone seen something like this or know how to debug or fix this issue?<div><br></div><div>$ git push origin HEAD:master<br>Username for '<a href="https://github.com" target="_blank">https://github.com</a>': teresajohnson<br>Password for '<a href="https://teresajohnson@github.com" target="_blank">https://teresajohnson@github.com</a>': <br>Enumerating objects: 33, done.<br>Counting objects: 100% (33/33), done.<br>Delta compression using up to 56 threads<br>Compressing objects: 100% (16/16), done.<br>Writing objects: 100% (17/17), 2.10 KiB | 2.10 MiB/s, done.<br>Total 17 (delta 14), reused 0 (delta 0), pack-reused 0<br>remote: Resolving deltas: 100% (14/14), completed with 14 local objects.<br>remote: error: GH006: Protected branch update failed for refs/heads/master.<br>remote: error: You're not authorized to push to this branch. Visit <a href="https://docs.github.com/articles/about-protected-branches/" target="_blank">https://docs.github.com/articles/about-protected-branches/</a> for more information.<br>To <a href="https://github.com/llvm/llvm-project.git" target="_blank">https://github.com/llvm/llvm-project.git</a><br> ! [remote rejected]           HEAD -> master (protected branch hook declined)<br>error: failed to push some refs to '<a href="https://github.com/llvm/llvm-project.git" target="_blank">https://github.com/llvm/llvm-project.git</a>'<br><div><br></div><div>I retried several times and keep getting that. I can log into github with the same username and password, and I see there that I am a member of llvm, can see llvm-project, and am a member of "LLVM Committers".</div><div><br></div><div>Someone suggested I try using SSH, so I set that up following the directions at <a href="https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh" target="_blank">https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh</a>.</div><div><br></div><div>I confirmed I can ssh to github now. I changed my remote's URL to SSH:</div><div><br></div>$ git remote set-url origin git@github.com:llvm/llvm-project.git<br><div>$ git remote -v<br>origin git@github.com:llvm/llvm-project.git (fetch)<br>origin    git@github.com:llvm/llvm-project.git (push)<br></div><div><br></div><div>However, I am still seeing the same error:</div><div><br></div><div>$ git push origin HEAD:master<br>Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts.<br>Enumerating objects: 33, done.<br>Counting objects: 100% (33/33), done.<br>Delta compression using up to 56 threads<br>Compressing objects: 100% (16/16), done.<br>Writing objects: 100% (17/17), 2.10 KiB | 1.05 MiB/s, done.<br>Total 17 (delta 14), reused 0 (delta 0), pack-reused 0<br>remote: Resolving deltas: 100% (14/14), completed with 14 local objects.<br>remote: error: GH006: Protected branch update failed for refs/heads/master.<br>remote: error: You're not authorized to push to this branch. Visit <a href="https://docs.github.com/articles/about-protected-branches/" target="_blank">https://docs.github.com/articles/about-protected-branches/</a> for more information.<br>To github.com:llvm/llvm-project.git<br> ! [remote rejected]           HEAD -> master (protected branch hook declined)<br>error: failed to push some refs to 'github.com:llvm/llvm-project.git'<br></div><div><br></div><div><br></div><div>What am I doing wrong?</div><div><br></div><div>Thanks,</div><div>Teresa</div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"><br></td></tr></tbody></table></span></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"><br></td></tr></tbody></table></span></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"><br></td></tr></tbody></table></span></div></div></div>