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

2021-10-04 Thread Mads Kiilerich

(Please keep replies on the list.)

On 10/5/21 00:25, Don Zimmer wrote:


Hi,

Thanks for the reply.  I am not sure how I could reproduce it for you, 
but I will give that some thought.


Unfortunately, my server is rather special in that the repositories 
are actually residing on a mounted Windows filesystem.  One thing I 
had noticed is that the repository folders, after creation through 
Kallithea, simply contain the contents of what normally would be the 
‘.git’ hidden folder if the repository had been manually created on a 
local file system using git… *is that unexpected?*




Yes. It is using "bare repos".

Perhaps try to verify that you also see the problem if the repository is 
on a local file system. And if using a repo that just has been created 
and where you know nothing else has touched the server repo or the local 
clone.


/Mads

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


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

2021-10-04 Thread Mads Kiilerich

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
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general