warmcat / gitohashi Goto Github PK
View Code? Open in Web Editor NEWC Daemon for presenting a lightweight but sophisticated web frontend for git
Home Page: https://warmcat.com/git/gitohashi
License: Other
C Daemon for presenting a lightweight but sophisticated web frontend for git
Home Page: https://warmcat.com/git/gitohashi
License: Other
Hi. After running gitohashi there was an error in opening.
This error happens when new http request (localhost/git) in browser
++ [wsisrv|2|h2] (2)
__jg2_conf_gitolite_admin_head: can't open /var/lib/gitolite3/repositories/gitolite-admin.git
-- [wsisrv|2|h2] (1) 963us
lwsac_use_cached_file_end: html refcount zero on entry
I runned this cmd, but no effect
sudo chmod -R a+rwX /var/lib/gitolite3
And as result of this error, no repo is visible in homepage.
More info:
# install deps
sudo apt update && sudo apt install build-essential git psmisc cmake libgit2-27 libgit2-dev libarchive13 libarchive-dev libmount-dev libsqlite3-dev libssl-dev openssl libssl1.1
#install lws
git clone https://xxx/libwebsocket.git && cd libwebsocket && mkdir build && cd build && cmake .. -DLWS_FOR_GITOHASHI=1 && make && sudo make install && sudo ldconfig
#install gitohashi
git clone https://xxx/gitohashi-orig.git && cd gitohashi-orig && mkdir build && cd build && cmake .. && make && sudo make install && sudo ldconfig
#create git user
sudo useradd -rmUs /bin/bash git && sudo groupmod -g 48 git && sudo usermod -u 48 git && sudo su git && usermod -aG sudo git && ssh-keygen
#install gitolite3
#copy ssh pub-key from /home/git/.ssh/id_rsa.pub (whole file)
sudo apt install gitolite3
#add gitohashi to system
sudo cp -rp ./etc-gitohashi /etc/gitohashi
# change repo-base-dir value to "/var/lib/gitolite3/repositories"
sudo cp /usr/local/lib/systemd/system/gitohashi.service /lib/systemd/system/
#start
sudo gitohashi
Appreciate any guide, Milad
Hi. I wanted to use gitohashi that depends on lws.
I installed lws with this cmd
cmake .. -DLWS_FOR_GITOHASHI=1
and make was successful. But in gitohashi make I encountered this error:
undefined reference to `lws_timed_callback_vh_protocol'
and there was a warning about this function
warning: implicit declaration of function ‘lws_timed_callback_vh_protocol’; did you mean ‘lws_callback_all_protocol’? [-Wimplicit-function-declaration]
408 | lws_timed_callback_vh_protocol(lws_get_vhost(wsi),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| lws_callback_all_protocol
How can I fix this issue?
I'm using this setup
ubuntu 20.04
lws - last version
libgit2-28
and I installed this depencies
sudo apt install build-essential git psmisc cmake libgit2-28 libgit2-dev libarchive13 libarchive-dev libmount-dev libsqlite3- libssl-dev openssl libssl1.1
sudo apt install gitolite3
With regards, Milad
Hi. I managed to run a gitohashi server.
For managing users and repos I used https://gitolite.com/gitolite/basic-admin.html and managed to create some repo with different accesses. When I use git commands everything is OK and accesses are correct ( .i.e git clone xxx ), but
If I use browser to show a repo ( or http get that url ) that only a specific user has access over it ( url like https://git-server-xxx.local/git/somerepo) I have access to see it! Actually you can see all repos with changing url to fit that repo name, and no acl matters here!
It seems that there is a missing link between gitolite and libgit2. How should I fix this?
With regards, Milad
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.