Deleting trunk

19 views
Skip to first unread message

joerg.s...@gmx.de

unread,
Jan 23, 2018, 12:03:11 PM1/23/18
to SubGit Users
Hello,

can anybody tell me, what happens if trunk is deleted in Subversion? Will SubGit simply remove the master branch?

Background: The sources in Subversion will go into maintenance mode, e.g. we have several branches, but trunk is discontinued and should no longer be used.

Cheers,
Jörg

TMate Software Support

unread,
Jan 23, 2018, 2:50:07 PM1/23/18
to joerg.s...@gmx.de, SubGit Users
Hello Joerg,
You're absolutely right, as SVN 'trunk' corresponds to Git 'master', trunk
deletion corresponds to master deletion. This is true if you're using standard
trunk/branches/tags/shelves options:

        trunk = trunk:refs/heads/master
        branches = branches/*:refs/heads/*
        shelves = shelves/*:refs/shelves/*
        tags = tags/*:refs/tags/*

The only side effect of that is that when Git repository has no master, by
default "git clone" won't checkout any branch because usually it checks out
'master' branch. But this is easily solvable by running "git checkout
branchname" immediately after "git clone".
--
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/1b67eeae-3164-4147-ac67-9d56a6e56689%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages