]> source.dussan.org Git - jgit.git/commit
Reject special Windows device names in ObjectChecker 29/23229/3
authorShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 05:49:36 +0000 (22:49 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 22:53:30 +0000 (15:53 -0700)
commitba0f89b4211fd57fe52120ec9a7c3cbaadbadd3b
tree96405fd15d1f3fad088893d9ce397820b70acd65
parent5019471ccb5f6283c0bbde6f697631f928fea987
Reject special Windows device names in ObjectChecker

If Windows rejection is enabled reject special device names like
NUL and PRN, including NUL.txt. This prevents a tree that might
be used on a Windows client from referencing a confusing name.

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