diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-09-15 16:37:26 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-09-15 21:34:37 +0100 |
commit | 90f22c6cf30a6bba768f77117923edb022c7ef39 (patch) | |
tree | 6d07ae50c231edc478d60114efc34dcf1fc0a79b /tests | |
parent | bc8bac5b1915bc6771e916de41deb916447ff879 (diff) | |
download | lorry-90f22c6cf30a6bba768f77117923edb022c7ef39.tar.gz |
lorry: Avoid creating non-bare repository in gitify_svn
Our working repositories should always be initialised as bare, and
this should be done in one place. gitify_svn currently uses "git svn
init", which always creates a non-bare repository, and then modifies
the repository to be bare (though still with core.logallrefupdates
enabled).
Thankfully "git svn init" does very little beyond "git init", so
we can avoid this:
1. Call ensure_gitdir, like other gitify methods do
2. Create the directory svn/refs/remotes/git-svn
3. Set config parameters svn-remote.svn.url (which we already did) and
svn-remote.svn.fetch
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions