xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit c363832f1e7c6bc3672f823ac5c0c2f3244b4615

Fixed UTF-8 chars whn connecting by ssh and issueing command repos
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-06-09 16:04
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-06-09 16:04
Parent(s): 132cd07d19e33b382ab4e7a0a0b0e057fe316652
Signing key:
Tree: 620a17d927aa3c348f39b3c3d3ff6b89892c035c
File Lines added Lines deleted
TODO 0 2
inc/ssh.inc.php 2 1
rocketgit.spec.in 1 1
File TODO changed (mode: 100644) (index cba2e18..dffe47a)
14 14 why the push failed. Carefull, not too much info. For example: why the push failed. Carefull, not too much info. For example:
15 15 "You have no key uploaded, go to ..." "You have no key uploaded, go to ..."
16 16 [ ] For 'log' and 'tree' we have decorations for links! [ ] For 'log' and 'tree' we have decorations for links!
17 [ ] When we have UTF-8 chars, the ssh 'repos' command does not show correctly
18 the date (translated to left).
19 17 [ ] In "Tree" section, seems the path is doubled. [ ] In "Tree" section, seems the path is doubled.
20 18 [ ] Hint: where in fs you can find the repo. [ ] Hint: where in fs you can find the repo.
21 19 [ ] Hints should not call rg_template, let next rg_template_table to do it. [ ] Hints should not call rg_template, let next rg_template_table to do it.
File inc/ssh.inc.php changed (mode: 100644) (index ba65986..d00ebef)
... ... function rg_ssh_repos($db, $uid)
35 35 if ($rows > 0) { if ($rows > 0) {
36 36 echo "Repositories (name, creation, disk used):\n"; echo "Repositories (name, creation, disk used):\n";
37 37 while (($row = rg_sql_fetch_array($res))) { while (($row = rg_sql_fetch_array($res))) {
38 echo substr(substr($row['name'], 0, 40) . $pad, 0, 32)
38 $_name = mb_substr($row['name'], 0, 40, 'UTF-8');
39 echo mb_substr($_name . $pad, 0, 32, 'UTF-8')
39 40 . " " . gmdate("Y-m-d", $row['itime']) . " " . gmdate("Y-m-d", $row['itime'])
40 41 . " " . rg_1024($row['disk_used_mb'] * 1024 * 1024) . " " . rg_1024($row['disk_used_mb'] * 1024 * 1024)
41 42 . "\n"; . "\n";
File rocketgit.spec.in changed (mode: 100644) (index ad2e733..b8d149b)
... ... Source: http://kernel.embedromix.ro/us/rocketgit/%{name}-%{version}.tar.gz
13 13 URL: http://kernel.embedromix.ro/us/ URL: http://kernel.embedromix.ro/us/
14 14 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
15 15 BuildArch: noarch BuildArch: noarch
16 Requires: httpd, php, php-cli, php-pgsql, xinetd
16 Requires: httpd, php, php-cli, php-pgsql, php-mbstring, xinetd
17 17 Requires: git, postgresql-server Requires: git, postgresql-server
18 18 Requires: util-linux Requires: util-linux
19 19 # SELinux stuff # SELinux stuff
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master