]> source.dussan.org Git - jgit.git/commitdiff
Fix string format parameter for invalidRefAdvertisementLine 18/156918/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 30 Jan 2020 23:38:24 +0000 (08:38 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 30 Jan 2020 23:38:49 +0000 (08:38 +0900)
The externalized error message added in f4fc640 ("BasePackConnection:
Check for expected length of ref advertisement", Dec 18, 2019) uses a
malformed string format. Since there is only one formatting argument,
it should be referenced with '{0}' rather than '{1}'.

Change-Id: Ibda864dfb0bb902fe07ae4bba73117b212046e8a
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties

index fb454d6f2e6ef61e47231a07c30cf5548b71b0bc..4251be8121c50b9e8339e5bd79e9e4c537c7a46b 100644 (file)
@@ -348,7 +348,7 @@ invalidPacketLineHeader=Invalid packet line header: {0}
 invalidPath=Invalid path: {0}
 invalidPurgeFactor=Invalid purgeFactor {0}, values have to be in range between 0 and 1
 invalidRedirectLocation=Invalid redirect location {0} -> {1}
-invalidRefAdvertisementLine=Invalid ref advertisement line: ''{1}''
+invalidRefAdvertisementLine=Invalid ref advertisement line: ''{0}''
 invalidReflogRevision=Invalid reflog revision: {0}
 invalidRefName=Invalid ref name: {0}
 invalidReftableBlock=Invalid reftable block