FS_POSIX: Externalize log message
Change-Id: Ida538e05c4595fdce99f1fa87469a3be60160adb Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
e4fdca7355
commit
6305869bf1
|
@ -735,6 +735,7 @@ unexpectedEndOfConfigFile=Unexpected end of config file
|
|||
unexpectedEndOfInput=Unexpected end of input
|
||||
unexpectedEofInPack=Unexpected EOF in partially created pack
|
||||
unexpectedHunkTrailer=Unexpected hunk trailer
|
||||
unexpectedNlinkValue=nlink of link to lock file {0} was not 2 but {1}
|
||||
unexpectedOddResult=odd: {0} + {1} - {2}
|
||||
unexpectedPacketLine=unexpected {0}
|
||||
unexpectedRefReport={0}: unexpected ref report: {1}
|
||||
|
|
|
@ -795,6 +795,7 @@ public static JGitText get() {
|
|||
/***/ public String unexpectedEndOfInput;
|
||||
/***/ public String unexpectedEofInPack;
|
||||
/***/ public String unexpectedHunkTrailer;
|
||||
/***/ public String unexpectedNlinkValue;
|
||||
/***/ public String unexpectedOddResult;
|
||||
/***/ public String unexpectedPacketLine;
|
||||
/***/ public String unexpectedRefReport;
|
||||
|
|
|
@ -400,8 +400,9 @@ public boolean createNewFile(File lock) throws IOException {
|
|||
Integer nlink = (Integer) (Files.getAttribute(lockPath,
|
||||
"unix:nlink")); //$NON-NLS-1$
|
||||
if (nlink > 2) {
|
||||
LOG.warn("nlink of link to lock file {} was not 2 but {}", //$NON-NLS-1$
|
||||
lock.getPath(), nlink);
|
||||
LOG.warn(MessageFormat.format(
|
||||
JGitText.get().unexpectedNlinkValue, lock.getPath(),
|
||||
nlink));
|
||||
return false;
|
||||
} else if (nlink < 2) {
|
||||
supportsUnixNLink = false;
|
||||
|
|
Loading…
Reference in New Issue