Questions tagged [subgit]
SubGit is a program for maintaining the same code in Git and Subversion repositories.
110
questions
8
votes
2
answers
4k
views
Converting Git repository into SVN with SubGit
I am using SubGit to synchronize Git and SVN repos. When cloning a remote Git repo I want to preserve all the history of that repo. The steps I currently follow allow me to copy the history of the ...
7
votes
1
answer
2k
views
How to find SVN revision in subgit repo?
I'm using Subgit to access a Subversion repo. It works great, but at times, especially when communicating with users who access the repo using an ordinary Subversion client, I'd really like to find ...
6
votes
1
answer
3k
views
SubGit: How to exclude branches?
I'm testing SubGit as a way of migrating from SVN to Git.
What I would like to do is be able to create remote branches in the git repository that all users can use that does not sync back to SVN.
I ...
6
votes
3
answers
1k
views
decentralized development using git and git-svn
We have 2-3 small teams of 2-3 people. We all use git for local and svn for central repository and git-svn got sync. This is works all the time except when we want to share our code between the team ...
6
votes
1
answer
2k
views
How do I install Gitlab to run on a Subgit repository?
I'm just getting started with SubGit and would like to use Gitlab in conjunction.
How would I go about using the Git repository provided by SubGit?
5
votes
1
answer
2k
views
Jira Subversion Mirror / SubGit remote error on push
So, using Subversion mirror(SubGit) with latest BitBucket (4.8.3). There are two changes made to master. One made directly and one made with a merge from a feature branch. When pushing the changes, ...
4
votes
1
answer
4k
views
How to set up subgit to mirror an svn repo that looks like a Windows Explorer hierarchy?
Being windows users, we created one svn repo with a hierarchy of folders. The bottom nodes contain the svn standard layout:
ProjectA/
ApplicationOne/
ModuleX/
trunk/
...
4
votes
1
answer
968
views
Add Subversion revision in Git commit message on SubGit import
Im am using a simple on-time import to migrate an existing SVN repository to GIT.
$ subgit import --svn-url http://svn/repo repo.git
Everything works fine, but is there any chance to include the ...
4
votes
3
answers
4k
views
Using subgit to migrate non-standard layout subversion repository with no branches, tags and trunk
I have been using subgit to convert my subversion repository to git. Unfortunately, I have a sub-project in one of my branches which is not in standard layout. The non-standard sub-project is not ...
4
votes
1
answer
956
views
Does subgit support multiple 'branches' directories?
Does subgit support multiple 'branches' directories?
For example, if one had an SVN repo that went like:
trunk/...
branches/<branch>/...
releases/<release>/...
tags/<tag>/...
but "...
3
votes
2
answers
746
views
How to skip generating .gitattribute file?
I am required to not to include .gitattribute. but subgit add it to the repository. could I know how can I stop subgit adding .gitattribute file?
3
votes
2
answers
1k
views
How to set subgit to work after rebooting
I’m trying to translate our subversion repository to git using subgit tool. I established subversion to git repositories successfully and it has been working normally some time, but changes from ...
3
votes
1
answer
2k
views
Subgit: avoid to synchronize git branches onto svn
I am trying to use SubGit but I am facing a problem with branches: I would like branches created under Git to live and die inside Git only. I found this: SubGit: How to exclude branches?, but it says
...
3
votes
1
answer
820
views
Git branches not merged after switching from svn
I used subgit to transform an old svn repository to git (including full history, branches, tags). After some initial trouble I got it working and it worked almost perfectly. Except branches doesn't ...
3
votes
2
answers
297
views
SVN trunk overwritten by old release. Project and trunk folder have now different histories
BACKGROUND
We have an SVN repository with multiple projects:
ROOT
- Project1
- trunk
- Project2
- trunk
..etc
Then we started a migration to git. We setup subgit to keep SVN and GIT ...
3
votes
2
answers
1k
views
Skip revisions when installing SubGit repository
I'm using SubGit to clone a SVN repository. Somewhere along the revisions is a copy of "/" to a certain tag. When SubGit loads every revision, it takes a long time to get this certain tag, which ...
3
votes
1
answer
157
views
Why repository size doubles when i copy notes?
I import SVN repository using Subgit, which is an excellent tool doing it fast and supporting custom svn layout. Subgit saves git commit -> svn revision reference in git notes. Every commit has ...
2
votes
2
answers
973
views
Not able to migrate source code with subgit
I am trying to migrate source code with subgit, it says import sucess but, when I open directory, I see only git and subgit folders with some meta data and history files, but no actual source code, my ...
2
votes
1
answer
890
views
During svn to git migration commit authors have wrong email
I have migrated my svn repo to local git. For some reason all authors look like:
userid <userid@localhost>
Is there way to change all authors rewriting "localhost" to "myorg.org"
userid <...
2
votes
2
answers
242
views
SubGit: use svn.svnCommitMessage option
Just seen this feature in the SubGit 3.2.4 release notes:
Support for svn.gitCommitMessage and svn.svnCommitMessage options that allow specifying message patterns used by SubGit while generating ...
2
votes
1
answer
1k
views
SubGit and .gitattributes
I'm importing an SVN repository into Git, and I have a lot of files with svn:eol-style set. SubGit reads those properties and generates a .gitattributes line for every file.
Is there a way to tell it ...
2
votes
1
answer
4k
views
subgit import and multiple branches directories
I'm trying to do an import using subgit. Just a one-time migration. My SVN structure contains:
branches
branch1
features
branch2
hotfixes
branch3
I'd like to convert all three to branches in ...
2
votes
1
answer
528
views
Subgit - stop the properties synchronization
I'm using subgit for two-way sync of an SVN and a Gitlab repo, through intermediate repository (like explained in official docs for connecting to Github. That's a part of a very slow transition ...
2
votes
1
answer
1k
views
How to hook SVN update with Subgit
I set up Subgit to sync between SVN and Git.
Subgit run a daemon process to listen SVN updating.
I want to run something after the daemon merge the SVN to Git repository,
What should I do?
2
votes
1
answer
2k
views
Idea to mirror an svn to git
Today, at my work we host our source code at a public svn repository that we don't admin access. Now, we want to use git (github) to host our source. For some internal reasons, the svn repository we ...
2
votes
1
answer
2k
views
Convert svn to git across repository restructuring using SubGit
I'm working on migrating a Subversion repository to Git using SubGit 2.0.3 while trying to maintain the full history across a restructuring. I've got a configuration that seems to maintain history ...
2
votes
2
answers
279
views
git clone --reference not behaving as expected: no transfer savings achieved
Summary: I'm using git clone with --reference to a repository which has all the appropriate files but not the commits and I'm expecting it to save network bandwidth and disk space. It doesn't.
I'm ...
2
votes
0
answers
59
views
Subgit skipping commits when syncing from git to svn
This may have to do with the order of operations but I'm not sure. I have an SVN repo which is mirrored to a git repo using subgit. In git I branched off of master into a feature branch and worked ...
2
votes
0
answers
175
views
Subgit migration stuck and stops at commits with large files
I am doing a migration from subversion to git using subgit. Subversion has a revision where large number of files (aprox 3GB) were committed accidentally. I am using "excludePath" parameter to avoid ...
2
votes
0
answers
432
views
SubGit calling GitLabs post-receive hook doesn't work
We are trying a soft migration from svn to git (GitLab) using SubGit as mirror. All works fine, except that commits to the svn repo do not trigger the GitLabs post-recive hook correctly (I suppose).
...
2
votes
2
answers
795
views
Pushing Subgit git repo to remote GitHub repo/server
I'm trying to push a Subgit created git local repository to remote GitHub without much luck.
I create the repo using subgit
$ subgit import --authors-file ./authors.txt --username svnuser --password ...
2
votes
0
answers
261
views
How to rewrite commit authors after subgit import already completed?
I imported large svn repository using Subgit. Later i noticed that svn revisions only had e-mail addresses while git usually also has user.names.
There is special file authors.txt for subgit which ...
2
votes
0
answers
240
views
Cannot start Subgit synchronisation automatically within Gitlab Docker Container via runit
My local Gitlab CE Docker container has Subgit included. When the Gitlab container is restarted the Subgit synchronisation should also start automatically.
My solution is derived from the original ...
2
votes
0
answers
186
views
Subgit and svn commit message hook
We are using subgit to sync git and svn and there is a svn hook for checking commits messages format.
We found that we are limited on which git action we can perform without violating the svn hook. ...
2
votes
1
answer
1k
views
How to checkout svn+ssh repository with subgit?
I want to checkout the glassfish svn with subgit 2.0.2.
I added
ssh-rsa blabla user@host
in the user account settings of java.net. The key is stored locally under ~/.ssh/authorized_keys and id_rsa....
2
votes
0
answers
656
views
GIT SVN with subgit and apache
I've started evaluating a piece of software called subgit which seamlessly allows you to interface a repo with either SVN or GIT.
Throughout our organization we interface our repos using apache, and ...
2
votes
1
answer
10k
views
SubGit Synchronisation issue: error: svn: E175002: connection refused by server
I am currently working on configuring a SubGit-instance, which should synchonize with a remote svn-server.
The problem is, that after about revision 150000 which were transformed into git commits, ...
1
vote
2
answers
186
views
How to exclude multiple branches in subgit when there is no same pattern
I am using subgit's one time conversion from svn to git. The import approach I took was running configuration command(subgit config svn_url) then change config file (/generated_repo.git/subgit/config) ...
1
vote
1
answer
1k
views
Using subgit with repositories having .git directory
I'm confused how to use subgit if I want my Git repository to have a .git subdirectory.
If I use the conventional subgit configure + (subgit import or subgit install), it doesn't create a .git ...
1
vote
2
answers
306
views
What firewall rules do I need to add for Subgit?
I've installed Stash, with the SVN mirror plugin - which installs subgit.
I have iptables setup something like:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT ...
1
vote
1
answer
133
views
Is it possible to use SubGit on a subsection of an SVN repository?
We have an SVN Repository with more than just the software we develop. I'd like to start using Git for just our software changes. Is it possible therefore to just use SubGit with a single directory of ...
1
vote
1
answer
166
views
How can I change my authors mapping file in subgit?
I have used subgit to create a standalone mirror from svn repository as git repository usingsubgit configure --layout auto SVN_REPO. THe main functionality is working great, but I am trying to map svn ...
1
vote
1
answer
439
views
Git repository, restrict path based read access
I understand that by design Git is distributed and each clone is a copy of the repository's history, blobs, tree objects, etc. We have a case to restrict read access to some of the folders/files ...
1
vote
1
answer
95
views
subgit - how to reflect edited SVN log message in git
I'm using subgit to sync my git and SVN repos. I have updated a misleading log message in SVN and I would like that reflected in git. I was wondering if something like this would do the trick:
subgit ...
1
vote
1
answer
521
views
Merge git branch onto svn branch using subgit
I'm using the Subgit plugin for BitBucket to mirror an svn repository as a git repository. Only the trunk branch (called master in git) has been marked for synchronization, but developers using the ...
1
vote
1
answer
882
views
subgit user mapping from git to svn uses wrong usernames
I am using subgit as svn mirror for our team. user mapping works correctly for all commits done to svn repo (Shows up as same "Author" on git repo), but commits done to git repo show up as different "...
1
vote
1
answer
3k
views
Configure subgit for a single directory inside the SVN
I am trying to set up subgit for a huge SVN repository. This repository is very old, so to tidy up the structure a little, I want to make seperate git-repositories for various subdirectories.
Suppose ...
1
vote
1
answer
446
views
Subgit "Out of Memory" and "GC Overhead Limit Exceeded"
I’m running a conversion project from svn to git. As the application is single threaded, I’m moving the project to a Faster PC.
So without any options bar httpSpooling = true; It runs OK on a VM – 4 ...
1
vote
1
answer
775
views
How to run a subgit import for trunk and one specific branch
Hi I have a question about SubGit version 3.2.1 ('Bobique') build #3593.
The svn repo to import doesn't have a standard layout.
I can't find the documentation to configure a 'subgit import' for just ...
1
vote
1
answer
466
views
How to mirror SVN in GIT w/o a trunk
We are using Stash (3.8.0) with the SVN Mirror for Atlassian Stash (2.0.15) plugin, both licensed for 50+ seats. We are trying to mirror SVN to an empty repository in Stash, however. The following ...