On Friday, August 5, 2022 at 4:14:17 PM UTC+2 Dominik Gnthr wrote:
> > Hi, > > I recently stumbled upon a bug, when I found a user had committed to a tag. > > Normally the function > CSVNProgressDlg::IsCommittingToTag checks if you're committing to a tag > and warns you. > > But if you include a file that is not inside a tag, then the warning isn't > shown. > > Example commit: > Changed /project/tags/test.txt > This shows the warning > > Example commit with two files: > Changed /project/tags/test.txt > Changed /project/something.txt > This does not show the warning. > I assume here that you've chosen /project as the root of your commit. In that case of course the check won't catch that you might be committing to a tag. Because while you see the files in the commit dialog, when the actual commit happens only /project is passed, and no paths inside that folder. But honestly: it's very, very unusual to have a working copy checked out from the repo root. I mean you would have *all* tags and branches checked out as well. That's a huge waste of disk space. check out from /trunk of a branch instead, and use "switch" to change between your branches and trunk. That's the recommended way. -- You received this message because you are subscribed to the Google Groups "TortoiseSVN" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/2efa216f-b2a5-4a20-9016-7adae1f638ean%40googlegroups.com.
