]> source.dussan.org Git - jgit.git/commit
Allow an ObjectChecker to reject special characters for Windows 27/23227/3
authorShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 04:19:23 +0000 (21:19 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 22:43:38 +0000 (15:43 -0700)
commit5019471ccb5f6283c0bbde6f697631f928fea987
treefa98d9da0cab8412766a52592b209facb7241f31
parent09f513cb37bcc0f2fba803acacfed66e527c68ba
Allow an ObjectChecker to reject special characters for Windows

Repositories that are frequently checked out on Windows platforms
may need to ensure trees do not contain strange names that cause
problems on those systems. Follow the MSDN guidelines and refuse
to accept a tree containing a special character, or names that end
with " " (space) or "." (dot).

Since Windows filesystems are usually case insensitive, also reject
mixed case versions of the reserved ".git" name.

Change-Id: Ic3042444b1e162c6d01b88c7e6ea39b2a73c4eca
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java