需要在某处添加存储库路径吗?

时间:2013-07-29 12:56:40

标签: gitlab

你好我遇到了一个问题,我需要在git remote“add origin”命令中添加“repositories”。 我在gentoo上运行gitlab v5-4。

我错过了某处的配置设置吗? 任何帮助或想法将不胜感激。

谢谢。

这是一些输出。

wim@myserver ~/tmp $ git remote add origin git@myserver:tmp.git
wim@myserver ~/tmp $ git push -u origin master
Password:
fatal: 'tmp.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

然而,当我添加存储库时,一切正常:

wim@myserver ~/tmp $ git remote add origin git@myserver:repositories/tmp.git
wim@myserver ~/tmp $ git push -u origin master
Password:
Counting objects: 3, done.
Writing objects: 100% (3/3), 206 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@myserver:repositories/tmp.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

一些测试:

sudo -u git -H /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
        /home/git/repositories: OK
        /home/git/.ssh/authorized_keys: OK



sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.4.0 ? ... OK (1.4.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ...
tmp... ok

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have satellites? ...
tmp... yes
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.1)

Checking GitLab ... Finished

cat ~/.ssh/authorized_keys
command="/home/git/gitlab-shell/bin/gitlab-shell key-2",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3N etc...

gitlab-shell中的repos路径config.yml和gitlab.yml设置为“/ home / git / repositories”

0 个答案:

没有答案