I tried to setup a git server on my F4-424. To get the git features, I installed ModBase1 (https://tmnascommunity.eu/download/modbase1/) from the community. Git setup is correct and the PATH is setted.
What I did :
- Create a shared folder called "git" in Volume1
- In git, create a project folder "test.git"
- In this folder, I ran the command
Code: Select all
git init --bare - On my PC, I tried to clone with
it ask me for my password then returns error
Code: Select all
git clone ssh://[email protected]:9222/Volume1/git/test.gitCode: Select all
bash: line 1: git-upload-pack: command not found fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Some workarounds require to edit ssh config from the NAS, but TOS seems to ignore .ssh folder or any .profile/.bashrc configurations.
The only working way I found for now is to use a Raspberry Pi as a git server. I mounted /Volume1/git to my Pi then I use
Code: Select all
git clone ss://user@raspberrypi/mnt/git/test.gitAny solution to make a git server on TOS 6 ?
[System Informations]
- Model: F4-424
- Version: TOS 6.0.794-01324
- ModBase1 version: 1.00.22
