diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2020-01-31 08:38:24 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2020-01-31 08:38:49 +0900 |
commit | 7d5300023e867ae1e259bc5ec3839dff2bc3fab8 (patch) | |
tree | 2eecb5e37dc0a8bc9675c8926e5a793d54a15402 | |
parent | 1f9c717ff709e26d44090bc1b71be7c4c2b2a0fd (diff) | |
download | jgit-7d5300023e867ae1e259bc5ec3839dff2bc3fab8.tar.gz jgit-7d5300023e867ae1e259bc5ec3839dff2bc3fab8.zip |
Fix string format parameter for invalidRefAdvertisementLine
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>
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties index fb454d6f2e..4251be8121 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties @@ -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 |