Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="https://stackoverflow.com/users/623049/skipper3k">OP skipper3k</a> <a href="https://stackoverflow.com/questions/5041067/gitolite-git-clone-error/5090221#5090221">reports</a> an issue with <code>RUNTIME_PREFIX</code> in Git, a bit similar to "<a href="https://stackoverflow.com/questions/1465398/git-pull-broken"><code>git pull</code> broken</a>" question:</p> <blockquote> <p>I'm not sure whether <code>RUNTIME_PREFIX</code> is defined for you. But while nosing in the <code>Makefile</code>, I did notice that prefix defaults to <code>$(HOME)</code>. I suspect that this may be the cause of your problems.</p> <p>The simple answer is to put this in <code>~/.bashrc</code>:</p> </blockquote> <pre><code>export GIT_EXEC_PATH=/opt/local/libexec/git-core </code></pre> <blockquote> <p>If you want to find out more about what's going on, you'll probably have to <strong>recompile git using <code>port -d upgrade -f git-core</code></strong> (or similar) and look closely at the build log to see where prefix is being set.<br> Incidentally, <code>port cat git-core</code> shows heavy usage of <code>${prefix}</code>.</p> </blockquote> <hr> <p>Original answer:</p> <p>First, did you get the most up-to-date gitolite version?<br> At <a href="https://github.com/sitaramc/gitolite/" rel="nofollow noreferrer">https://github.com/sitaramc/gitolite/</a>, you need to consider the '<strong><code>pu</code></strong>' branch.</p> <p>The <a href="http://sitaramc.github.com/gitolite/install.html" rel="nofollow noreferrer">installation documentation is then this one</a>.</p> <hr> <p><a href="http://sitaramc.github.com/gitolite/g3why.html" rel="nofollow noreferrer">GitoliteV3 or 'g3'</a> doc:</p> <blockquote> <p>"Installation" consists of the following options:</p> <ol> <li>Keep the sources anywhere and use the full path to run the gitolite command.</li> <li>Keep the sources anywhere and symlink just the gitolite program to some directory on your $PATH.</li> <li>Copy the sources somewhere and use that path to run the gitolite command.</li> </ol> <p>You can run the 'install' command in 3 different ways:</p> </blockquote> <pre><code># option 1 gitolite/install # option 2 gitolite/install -ln # defaults to $HOME/bin, or use a specific directory: gitolite/install -ln /usr/local/bin # option 3 gitolite/install -to /usr/local/gitolite/bin </code></pre> <hr> <p>Old answer for gitolite V2: Second, I prefer the <del>"<strong><a href="https://github.com/sitaramc/gitolite/blob/pu/doc/1-INSTALL.mkd#_from_client_method_install_from_the_client_to_the_server" rel="nofollow noreferrer">from-client method</a></strong>"</del> method:</p> <blockquote> <p>The advantage of this method is that it forces you to solve the ssh pubkey problem before attempting to install.<br> It works best if you have dedicated userids, </p> <ul> <li>one on the server for installing gitolite, </li> <li>and one on the client for administering it.</li> </ul> <p>The disadvantage is that the admin user ends up with two keys </p> <ul> <li>one for shell access (that he started with) and </li> <li>one for gitolite access (which the script creates if needed).</li> </ul> </blockquote> <p>So I like to create a <strong><code>~/.ssh/config</code></strong> file with the two different sets of parameters:</p> <pre><code>host gitolite user git hostname server identityfile ~/.ssh/git host gitadmin user git hostname server identityfile ~/.ssh/id_rsa (myaccount public key) </code></pre> <p>The <strong>gitolite-admin</strong> is only visible for the first public ssh key:</p> <pre><code>C:\HOMEWARE\git&gt;ssh gitolite hello git, the gitolite version here is v1.5.9-25-ga10287a the gitolite config gives you the following access: R W gitolite-admin @R_ @W_ testing Connection to server closed. </code></pre> <p>With my account:</p> <pre><code>C:\HOMEWARE\git&gt;ssh gitadmin hello myaccount, the gitolite version here is v1.5.9-25-ga10287a the gitolite config gives you the following access: @R_ @W_ testing Connection to mccprdgit10 closed. </code></pre> <p>So:</p> <pre><code>C:\HOMEWARE\git&gt;git clone gitolite:gitolite-admin Cloning into gitolite-admin... remote: Counting objects: 16, done. remote: Compressing objects: 100% (13/13), done. remote: Total 16 (delta 2), reused 0 (delta 0) Receiving objects: 100% (16/16), done. Resolving deltas: 100% (2/2), done. </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload