Server complaining about converted repo

26 views
Skip to first unread message

Charles Brossollet

unread,
Sep 6, 2017, 10:11:59 AM9/6/17
to SubGit Users
Hello,

I noticed that I can't directly use a repo converted with SubGit in a Git server (namely RhodeCode), which seems to complain of the absence of an info directory in the repo.
If I do git clone --mirror of the repo and feed the server with it, it is happy.
The RhodeCode devs said it wasn't a repo ready for bare git server. What do you think?

Best
Charles

TMate Software Support

unread,
Sep 6, 2017, 5:36:36 PM9/6/17
to Charles Brossollet, SubGit Users
Hello Charles,
I have never heard about RhodeCode before, but I've just tried it to see if it works with SubGit and basically it does (I didn't perform extensive testing).

The steps to setup SubGit with RhodeCode is very very similar to steps to setup SubGit with Gogs server: https://subgit.com/gogs.html

So I'll describe the steps.

1. Create an empty Git repository from RhodeCode using its UI:

  Admin | Repositories | Add Repository

For example, let's suppose it's name is "repo".

2. Find the repository on the filesystem. To do that you can find the path where all repositories reside:

  Admin | Settings | VCS | Main Storage Location

In my example it's /home/user/repos, so full path to that empty Git repository is

  /home/user/repos/repo

3. Run "subgit configure" on that repository as  SubGit Quick Howto recommends ( https://subgit.com/howto.html#configure ):

  subgit configure --layout auto --trunk trunk SVN_PROJECT_URL /home/user/repos/repo

4. Adjust

  /home/user/repos/repo/subgit/config
  /home/user/repos/repo/subgit/authors.txt
  /home/user/repos/repo/subgit/passwd

according to your needs and SubGit Remote Book documentation ( https://subgit.com/remote-book.html ). For the simplest case you usually need just to specify credentials in the 'passwd' file.

5. Run "subgit install" on the Git repository:

  subgit install /home/user/repos/repo

That's basically all. To test SubGit in action you can clone the Git repository URL:

  Admin | Repositories | <choose yours ("repo" in my example)> | Clone url

Run "git clone" for that URL:

  git clone GIT_URL repo-cloned/

Then

  cd repo-cloned/
  # perform any change
  git commit -a -m "Something changed"
  git push origin master

And on "git push" command this change you performed will be also translated to SVN.

I hope this information helps. If you need more information, e.g. on your particular case, contact me again.

Dmitry Pavlenko,

TMate Software,
http://tmatesoft.com/ git-svn import & mirror

--
You received this message because you are subscribed to the Google Groups "SubGit Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subgit-users+unsubscribe@googlegroups.com.
To post to this group, send email to subgit...@googlegroups.com.
Visit this group at https://groups.google.com/group/subgit-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/subgit-users/8d7f6ea4-cceb-4d30-8eef-a295ee60804c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

CharlesB

unread,
Sep 7, 2017, 3:43:03 AM9/7/17
to TMate Software Support, SubGit Users
Hi Dmitry,

My use case is a bit different, the problem occurs with the "Remap and rescan" feature of rhodecode that discovers new repositories, instead of adding it manually, and the repo is created with subgit import (instead of install, in case it matters)

Best
Charles

TMate Software Support

unread,
Sep 7, 2017, 7:24:22 AM9/7/17
to CharlesB, SubGit Users
Hello Charles,
I see now. Indeed, if 'info' directory is absent, RhodeCode fails to "Remap and rescan". But it's enough to create an empty 'info' directory and rescan again to fix the issue:

  cd path/to/git/repository
  mkdir info
  #now rescan

Thanks for pointing to this issue, I think, we will add empty 'info' directory to Git repositories created by SubGit in the future versions (since 3.2.7). For now you can use a simple work around: create empty 'info' directory manually and then rescan.

Dmitry Pavlenko,

TMate Software,
http://tmatesoft.com/ git-svn import & mirror

Reply all
Reply to author
Forward
0 new messages