<div dir="ltr"><div><div><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" id="docs-internal-guid-ef789795-4901-4570-22ee-638aff2e3d5a"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Hi folks -</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">I’m trying to follow </span><a href="http://fedoraproject.org/wiki/Infrastructure/fedorapeople.org#Pushing_to_your_repository" style="text-decoration:none"><span style="font-size:13px;font-family:Verdana;color:rgb(17,85,204);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline">these direction</span></a><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">s so that I have a personal branch to work on the virt getting started guide, that is backed up to fedorapeople.  Somehow I’m failing but I don’t know where.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">This is what I tried :</span></p><br><ol style="margin-top:0pt;margin-bottom:0pt"><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git clone --bare <a href="https://git.fedorahosted.org/cgit/docs/virtualization-getting-started-guide.git/">https://git.fedorahosted.org/cgit/docs/virtualization-getting-started-guide.git/</a> virtualization-getting-started-guide.git</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">cd virtualization-getting-started-guide.git</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git branch smccann_virtmanager</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git checkout smccann_virtmanager</span></p></li></ol><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">This gives me the following error: fatal: this operation must be run in a work tree.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Looking that up, it seems I shouldn’t have cloned as --bare.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">So I try again….w/o the bare…</span></p><br><ol style="margin-top:0pt;margin-bottom:0pt"><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git clone  <a href="https://git.fedorahosted.org/cgit/docs/virtualization-getting-started-guide.git/">https://git.fedorahosted.org/cgit/docs/virtualization-getting-started-guide.git/</a> virtualization-getting-started-guide.git</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">cd virtualization-getting-started-guide.git</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git branch smccann_virtmanager</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git checkout smccann_virtmanager</span></p></li></ol><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">this looks better…</span></p><ol style="margin-top:0pt;margin-bottom:0pt"><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">touch git-daemon-export-ok (so it’s visible on cgit)</span></p></li></ol><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">  scp it up to fedorapeople:</span></p><ol style="margin-top:0pt;margin-bottom:0pt"><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">scp -r virtualization-getting-started-guide.git/ mccann2@fedorapeople.org:public_git/virtualization-getting-started-guide.git</span></p></li></ol><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">So far so good. Let’s make a minor edit, add and commit…</span></p><ol style="margin-top:0pt;margin-bottom:0pt"><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">(edit Book_Info.xml and build to ensure it works)</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git add en-US/Book_Info.xml</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git commit -m ‘first commit. Fix Book_Info.xml so it will build’</span></p></li></ol><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Now try to push that to fedorapeople:</span></p><ol style="margin-top:0pt;margin-bottom:0pt"><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git remote add fedorapeople </span><a href="mailto:mccann2@fedorapeople.org" style="text-decoration:none"><span style="font-size:13px;font-family:Verdana;color:rgb(17,85,204);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline">mccann2@fedorapeople.org</span></a><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">:public_git/virtualization-getting-started-guide.git</span></p></li><li dir="ltr" style="list-style-type:decimal;font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git push --mirror fedorapeople</span></p></li></ol><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">This gets me the following batch of errors:</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">git push --mirror fedorapeople</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Counting objects: 4, done.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Delta compression using up to 2 threads.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Compressing objects: 100% (4/4), done.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Writing objects: 100% (4/4), 394 bytes | 0 bytes/s, done.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Total 4 (delta 3), reused 0 (delta 0)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: refusing to update checked out branch: refs/heads/smccann_virtmanager</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: By default, updating the current branch in a non-bare repository</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: is denied, because it will make the index and work tree inconsistent</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: with what you pushed, and will require &#39;git reset --hard&#39; to match</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: the work tree to HEAD.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error:</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: You can set &#39;receive.denyCurrentBranch&#39; configuration variable t</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: &#39;ignore&#39; or &#39;warn&#39; in the remote repository to allow pushing int</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: its current branch; however, this is not recommended unless you</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: arranged to update its work tree to match what you pushed in som</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: other way.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error:</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: To squelch this message and still keep the default behaviour, se</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">remote: error: &#39;receive.denyCurrentBranch&#39; configuration variable to &#39;refuse&#39;.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">To mccann2@fedorapeople.org:public_git/virtualization-getting-started-guide.git</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> ! [remote rejected] smccann_virtmanager -&gt; smccann_virtmanager (branch is currently checked out)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">error: failed to push some refs to &#39;mccann2@fedorapeople.org:public_git/virtualization-getting-started-guide.git&#39;</span></p><br><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">So now I’m lost in some weird catch-22 where --bare is needed for one set of commands, but won’t work for the other.  I’m guessing I’m missing something obvious here… Any clues what that is?<br><br></span></div><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Thanks,<br></span></div><span style="font-size:13px;font-family:Verdana;color:rgb(0,0,0);background-color:rgb(240,247,255);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Sandra<br></span></div>