Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git svn should refuse to checkin .svn directories

From: JM Ibanez <hidden>
Date: 2016-06-15 22:44:29

Thomas Koch [off-list ref] writes:
As you might guess I just annoyed my collegues by (temporarily) destroying our 
svn repo. Nobody could checkout anymore, because I accidently checked in 
a .svn directory with git svn.

I'm lucky that I'm still allowed to use git svn to work on our svn repo...

Maybe you could add a warning or something else to avoid .svn directories to 
be ever checked in via git svn.

I'm sure that there is also a config option somewhere to get .svn directories 
ignored (also subdirs when adding the parent dir?). But this check should 
really be a default setting to avoid other newcommers to get into trouble 
because they gave git svn a try.
Well, this isn't a patch to git-svn, but this may help those working
with upstream SVN repositories via git and git-svn. Add this as the
pre-commit hook in .git/hooks (make sure to make it executable).

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help