title: Git Server Setup using Apache 2.2 on Windows 7
body: <p></p>
  
  <p><strong>Environment</strong> Windows 7 64-bit</p>
  
  <p><strong>Software</strong> Git 2.10, Apache 2.2, Python 3.3.5, Strawberry Perl 5.24, Libgti2 0.22, Open LDAP</p>
  
  <p>Git Server setup has been done. The <code>httpdf.config</code> file from Apache 2.2 has config entry</p>
  
  <pre class="lang-none prettyprint-override"><code>ScriptAlias "/git" "../interceptor.pl
  </code></pre>
  
  <p>After a few validations, the Perl script calls <code>httpbackend</code> using code <code>system(path to httpbackend)</code></p>
  
  <p>With this, git is supposed to execute pre-receive and post-receive hooks in bash.</p>
  
  <p>But I am getting getting error</p>
  
  <blockquote>
    <p>Counting objects: 3, done.<br>
        Delta compression using up to 4 threads.<br>
        Compressing objects: 100% (2/2), done.<br>
        Writing objects: 100% (3/3), 308 bytes | 0 bytes/s, done.<br>
        Total 3 (delta 0), reused 0 (delta 0)<br>
        remote:       0 [main] bash 17820 C:\Program Files\Git\bin..\usr\bin\bash.exe: *** fatal error - add_item ("\??\C:\Program Files\Git", "/", ...) failed, errno 1<br>
        remote: Stack trace:<br>
        remote: Frame        Function    Args<br>
        remote: 000FFFF9BB0  0018007164E (00180273652, 00180224DD9, 000FFFF9BB0, 000FFFF8B30)<br>
        remote: 000FFFF9BB0  00180046669 (000FFFFABE0, 000FFFF9BB0, 1D2156132A99C69, 00000000000)<br>
        remote: 000FFFF9BB0  001800466A2 (000FFFF9BB0, 00000000001, 000FFFF9BB0, 505C3A435C3F3F5C)<br>
        remote: 000FFFF9BB0  001800DF22B (00000000000, 000FFFFCE00, 001800CEE68, 1D215613B9BEF57)<br>
        remote: 000FFFFCC00  0018012D735 (00000000000, 00000000000, 001800C753E, 00000000000)<br>
        remote: 000FFFFCCC0  00180046CE5 (00000000000, 00000000000, 00000000000, 00000000000)<br>
        remote: 00000000000  0018004590C (00000000000, 00000000000, 00000000000, 00000000000)<br>
        remote: 000FFFFFFF0  001800459A4 (00000000000, 00000000000, 00000000000, 00000000000)<br>
        remote: End of stack trace<br>
        remote:       0 [main] bash 17708 C:\Program Files\Git\bin..\usr\bin\bash.exe: *** fatal error - add_item ("\??\C:\Program Files\Git", "/", ...) failed, errno 1<br>
        remote: Stack trace:<br>
        remote: Frame        Function    Args<br>
        remote: 000FFFF9BB0  0018007164E (00180273652, 00180224DD9, 000FFFF9BB0,     000FFFF8B30)<br>
        remote: 000FFFF9BB0  00180046669 (000FFFFABE0, 000FFFF9BB0, 1D215613BB15B5D, 00000000000)<br>
        remote: 000FFFF9BB0  001800466A2 (000FFFF9BB0, 00000000001, 000FFFF9BB0, 505C3A435C3F3F5C)<br>
        remote: 000FFFF9BB0  001800DF22B (00000000000, 000FFFFCE00, 001800CEE68, 1D2156144A312D3)<br>
        remote: 000FFFFCC00  0018012D735 (00000000000, 00000000000, 001800C753E, 00000000000)<br>
        remote: 000FFFFCCC0  00180046CE5 (00000000000, 00000000000, 00000000000,     00000000000)<br>
        remote: 00000000000  0018004590C (00000000000, 00000000000, 00000000000, 00000000000)<br>
        remote: 000FFFFFFF0  001800459A4 (00000000000, 00000000000, 00000000000, 00000000000)<br>
        remote: End of stack trace<br>
        To <a href="http://localhost:8113/git/MyDemo.git" rel="nofollow noreferrer">http://localhost:8113/git/MyDemo.git</a><br>
        9a34da9..939214d  master -> master  </p>
  </blockquote>
  
  <p>Due to this error, hooks are not getting executed.</p>