<div dir="ltr"><div dir="ltr"><div dir="ltr">You can get rid of the errors by doing</div><div dir="ltr"><br></div><div>git remote prune <origin></div><div><br></div><div>Where <origin> is the name you have for the upstream repo, normally 'origin'.</div><div><br></div><div>Alan<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 27 May 2021 at 16:11, Sylvain Henry <<a href="mailto:sylvain@haskus.fr">sylvain@haskus.fr</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>
<p><span style="color:red">> error: cannot lock ref
'refs/remotes/origin/wip/hsyl20/dynflags':
'refs/remotes/origin/wip/hsyl20/dynflags/exception' exists;
cannot create 'refs/remotes/origin/wip/hsyl20/dynflags'</span></p>
<p>This one is because I've removed some of my wip branches already
merged upstream. Their names were conflicting with a new branch
name (wip/hsyl20/dynflags<span style="color:red"></span>).</p>
<p>I forgot that everyone fetches every /wip branch so now it
conflicts for everyone... I need to remember to remove the branch
when !5845 will be merged.<br>
</p>
<p>> Should I worry?</p>
<p>No. The submodule seems to be checked out correctly even with the
error.</p>
<p>Sylvain</p>
<p>PS: I still think we shouldn't have that many wip branches in the
main repositories (cf
<a href="https://mail.haskell.org/pipermail/ghc-devs/2019-February/017031.html" target="_blank">https://mail.haskell.org/pipermail/ghc-devs/2019-February/017031.html</a>)<br>
</p>
<p><br>
</p>
<div>On 27/05/2021 15:40, Simon Peyton Jones
via ghc-devs wrote:<br>
</div>
<blockquote type="cite">
<div>
<p class="MsoNormal">I’m getting these errors from `git
submodule update`. Should I worry?<u></u><u></u></p>
<p class="MsoNormal">Simon<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p>From <a href="https://gitlab.haskell.org/ghc/haddock" target="_blank">https://gitlab.haskell.org/ghc/haddock</a><u></u><u></u></p>
<p>* [new branch]
az/T19834
-> origin/az/T19834<u></u><u></u></p>
<p>* [new branch]
az/T19834-2
-> origin/az/T19834-2<u></u><u></u></p>
<p>* [new branch]
az/T19845
-> origin/az/T19845<u></u><u></u></p>
<p>* [new branch]
az/T19845-2
-> origin/az/T19845-2<u></u><u></u></p>
<p>* [new branch]
az/T19845-3
-> origin/az/T19845-3<u></u><u></u></p>
<p>* [new branch]
dependabot/npm_and_yarn/haddock-api/resources/html/hosted-git-info-2.8.9
->
origin/dependabot/npm_and_yarn/haddock-api/resources/html/hosted-git-info-2.8.9<u></u><u></u></p>
<p>* [new branch]
dependabot/npm_and_yarn/haddock-api/resources/html/lodash-4.17.21
->
origin/dependabot/npm_and_yarn/haddock-api/resources/html/lodash-4.17.21<u></u><u></u></p>
<p>* [new branch]
dn/dn-driver-refactor-and-split
-> origin/dn/dn-driver-refactor-and-split<u></u><u></u></p>
<p> b4e7407b..c7281407
ghc-9.2
-> origin/ghc-9.2<u></u><u></u></p>
<p> dabdee14..4f9088e4
ghc-head
-> origin/ghc-head<u></u><u></u></p>
<p>* [new branch]
wip/T18389-task-zero
-> origin/wip/T18389-task-zero<u></u><u></u></p>
<p>+ 7d27ea7a...3b6a8774
wip/T19720
-> origin/wip/T19720 (forced update)<u></u><u></u></p>
<p>+ fe35fed3...40ba457f
wip/adinapoli-align-ps-messages
-> origin/wip/adinapoli-align-ps-messages (forced
update)<u></u><u></u></p>
<p>* [new branch]
wip/dn-driver-refactor-and-split
-> origin/wip/dn-driver-refactor-and-split<u></u><u></u></p>
<p><span style="color:red">error: cannot lock ref
'refs/remotes/origin/wip/hsyl20/dynflags':
'refs/remotes/origin/wip/hsyl20/dynflags/exception' exists;
cannot create 'refs/remotes/origin/wip/hsyl20/dynflags'<u></u><u></u></span></p>
<p>! [new branch]
wip/hsyl20/dynflags
-> origin/wip/hsyl20/dynflags (unable to update local ref)<u></u><u></u></p>
<p>* [new branch]
wip/hsyl20/uncpp
-> origin/wip/hsyl20/uncpp<u></u><u></u></p>
<p><span style="color:red">Unable to fetch in
submodule path 'utils/haddock'; trying to directly fetch
4f9088e4b04e52ca510b55a78048c9230537e449:<u></u><u></u></span></p>
<p>Submodule path 'utils/haddock': checked out
'4f9088e4b04e52ca510b55a78048c9230537e449'<u></u><u></u></p>
<p>simonpj@MSRC-3645512:~/code/HEAD-7$<span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
ghc-devs mailing list
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div></div></div>