'git fetch' not working whereas 'git clone' does

Mads Kiilerich mads at kiilerich.com
Mon Oct 4 22:14:43 UTC 2021


On 10/4/21 23:31, Don Zimmer wrote:
>
> Hi,
>
> I had set up an Apache server running Kallithea recently and all seems 
> working well except I have just discovered that although ‘git clone’ 
> works on an http URL to my server, that ‘git fetch’ fails with the 
> message ‘fatal: not a git repository (or any of the parent 
> directories): .git’.  Is this a known limitation?
>

No, we don't know about any issue like that.

The case you describe works here (when testing with gearbox serve, not 
using Apache):

$ git clone http://test_admin@localhost:5000/vcs_test_git
Cloning into 'vcs_test_git'...
Password for 'http://test_admin@localhost:5000':
remote: Enumerating objects: 3932, done.
remote: Counting objects: 100% (3932/3932), done.
remote: Compressing objects: 100% (1734/1734), done.
remote: Total 3932 (delta 2162), reused 3932 (delta 2162), pack-reused 0
Receiving objects: 100% (3932/3932), 1.13 MiB | 10.20 MiB/s, done.
Resolving deltas: 100% (2162/2162), done.

$ cd vcs_test_git/

$ git fetch
Password for 'http://test_admin@localhost:5000':
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 330 bytes | 330.00 KiB/s, done.
 From http://localhost:5000/vcs_test_git
    5f2c6ee..2b209ba  master     -> origin/master

$

Can you find a simple way to reproduce the problem?

/Mads
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20211005/01789e84/attachment.html>


More information about the kallithea-general mailing list