Skip to content

GitLab + SubGit: Subversion commit appears in a git repository after 20minutes-1hour delay

Hello!

Thank you very much for the perfect GitLab!

We have the GitLab with the SubGit installation to duplex synchronization between legacy subversion reposition and git.

We have a simple scenario:

Commit changes with subversion into the trunk reflected to the origin/master

>svn add file.txt
A         file.txt
>svn commit -m "Added file.txt"
Adding         file.txt
Transmitting file data .done
Committing transaction...
Committed revision 27597. 

We see this commit in SubGit log immediately:

[daemon][17] SET_PATH 'trunk' 27596 not empty depth=infinity
[daemon][17] fetching: branch = refs/svn/root/trunk, revision = 27597, receivedFileCount=0
[daemon][17] successfully received 'trunk/file.txt' with size=9
[daemon][17] For file.txt "text" and "eol" are set to "UNSET" and "UNDEF" because svn:eol-style was changed to null or the file was added; and svn:mime-type was changed to null or the file was added
[daemon][17] fetched: hash = 4baea5bf0367c403ca2c8aeb3e6677790cf061b9, branch = refs/svn/root/trunk, revision = 27597

We see this commit in GitLat interface:

image

But when clone repository, pull or fetch with git:

>git clone http://ourgitlab/sandbox/subgit.git
>git log -n 1
commit 163fa0de857bfb0d87988b48bfb18b30111725ee (HEAD -> master, origin/master, origin/HEAD)
Merge: a8c87bc b6ad58e
Author: XXXX
Date:   Fri Jun 19 09:48:40 2020 +0300
Merge branch 'IPBranch'
>dir file.txt
D:\gitlab\git\subgit
File not found

the new commit "Added file.txt" appears in 1 hour.

Notably if we press the "house keeping" button in Settings/General/Advance after such commit, git pull|fetch|clone get a new commit immediately. Also we see a new commit immediately if we switches from the http protocol to the ssh protocol.

What's can be wrong?

We have asked the same question to SubGit guys, but they have no ideas: https://support.tmatesoft.com/t/gitlab-subgit-subversion-commit-appears-in-a-git-repository-after-20minutes-1hour-delay/2423

I will appreciate for any hints.

Thanks in advance, Anatoly Shirokov.

Edited by 🤖 GitLab Bot 🤖