Coder Social home page Coder Social logo

warmcat / gitohashi Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 2.0 1.09 MB

C Daemon for presenting a lightweight but sophisticated web frontend for git

Home Page: https://warmcat.com/git/gitohashi

License: Other

CMake 2.92% CSS 0.60% JavaScript 19.94% C 75.66% Pascal 0.10% HTML 0.78%

gitohashi's People

Contributors

lws-team avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

yut148 moneytech

gitohashi's Issues

jg2 can't open repo folders

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:

  • created "git" sudo user with uid and gid 48 (it seems it has to be 48 only) and passed public key to gitolite3
  • on debian 10
    My steps to install
# 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

implicit declaration of function ‘lws_timed_callback_vh_protocol’

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

access control problem

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.