<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.Code, li.Code, div.Code
        {mso-style-name:Code;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-US;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
.MsoPapDefault
        {mso-style-type:export-only;
        margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">I’m trying desperately to follow the instructions on
<a href="https://ghc.haskell.org/trac/ghc/wiki/WorkingConventions/Git/Submodules">
https://ghc.haskell.org/trac/ghc/wiki/WorkingConventions/Git/Submodules</a> for how to update haddock to follow a small change to GHC.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I’ve checked out the haddock master, made my patch, and want to push to haddock. But my push is rejected for an inscrutable reason:<o:p></o:p></span></p>
<p class="Code">git status<o:p></o:p></p>
<p class="Code"># On branch master<o:p></o:p></p>
<p class="Code"># Your branch is ahead of 'origin/master' by 1 commit.<o:p></o:p></p>
<p class="Code">#<o:p></o:p></p>
<p class="Code">nothing to commit (working directory clean)<o:p></o:p></p>
<p class="Code">simonpj@cam-05-unx:~/code/HEAD-2/utils/haddock$ git push<o:p></o:p></p>
<p class="Code">Counting objects: 9, done.<o:p></o:p></p>
<p class="Code">Delta compression using up to 32 threads.<o:p></o:p></p>
<p class="Code">Compressing objects: 100% (5/5), done.<o:p></o:p></p>
<p class="Code">Writing objects: 100% (5/5), 470 bytes, done.<o:p></o:p></p>
<p class="Code">Total 5 (delta 4), reused 0 (delta 0)<o:p></o:p></p>
<p class="Code"><span style="color:red">remote: W refs/heads/master haddock simonpj DENIED by refs/.*       
<o:p></o:p></span></p>
<p class="Code">remote: error: hook declined to update refs/heads/master        <o:p>
</o:p></p>
<p class="Code">To ssh://git@ghc.haskell.org/haddock.git<o:p></o:p></p>
<p class="Code">! [remote rejected] HEAD -> master (hook declined)<o:p></o:p></p>
<p class="Code">error: failed to push some refs to 'ssh://git@ghc.haskell.org/haddock.git'<o:p></o:p></p>
<p class="Code">simonpj@cam-05-unx:~/code/HEAD-2/utils/haddock$<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">What do I do now? <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Presumably once that’s done I include the change to utils/haddock in my patch to HEAD, correct?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Getting to Haddock HEAD added 12 new patches on the haddock branch so I suppose they’ll be included too. I don’t know whether that is good or bad.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">help!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Simon<o:p></o:p></span></p>
<p class="Code"><o:p> </o:p></p>
</div>
</body>
</html>