Hello,
I’ve followed this tutorial too : https://www.virtualmin.com/documentation/web/git
Install git, webmin-virtualmin module, create a sub-domain, create git service for this sub-domain, create a project repository and give full access to one user.
But can’t browse the repository from http url : http://git.mydomain.tld/git/projectname.git , get the same error : 403 Forbiden - Open Failed.
Check it from https://myip:port/virtualmin-git/ and go to (click on "Browse repository) http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git and it works.
Go to http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git after leaving all sessions, password is asked and project browsable.
So I think the url must be now : http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git or I’m missing something ?
Go ahead trying to make my git repository usable.
So, I have it : you have to follow instructions given in “repositories command”, button in git repositories virtualmin interface : service/virtualmin git.
at least : Local repository initialization and Setting up access to this repository.
Once repository initialized, yould push over http from your local repository : check here : http://www.jeremy-ozog.fr/android/2013/06/09/developpement-bitbucket-git-android/
and look at Bitbucket command line.
1 - go to your local git repository :
cd /path/to/project/.git
2 - create remote repository
git remote add origin http://username@yourdomain.tld/gitprojectname.git/
the origin is given in Setting up access from service/git virtualmin/repositories command/Setting up access to this repository
3 - push from your local repository to remote repository (virtualmin server) :
push -u origin --all --verbose --dry-run
password is asked for your git user, after testing with --dry-run, you should remove it for real push.
Check the repository at this url :
http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git pushed filed from your local repository to remote virtualmin git repository are here.
Greatings,
Eric
PS : I can’t attache a jpg of 50ko with usable virtualmin git view (validation error)