diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2014-07-15 11:32:23 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-09-04 11:35:16 +0200 |
commit | 2f6372337cfd5944e2179f5ec5e2dbe0cbc96386 (patch) | |
tree | e8c61e3ebc4c54b6cfda4f2e4155cd825fa408ec /org.eclipse.jgit/src/org/eclipse/jgit/gitrepo | |
parent | 547f05d675e27b60a8d5a32e92f8f0e04582bdab (diff) | |
download | jgit-2f6372337cfd5944e2179f5ec5e2dbe0cbc96386.tar.gz jgit-2f6372337cfd5944e2179f5ec5e2dbe0cbc96386.zip |
Rename local variables/parameters to remove warnings about hiding
Change-Id: I73f38492b6a2e7fd6e77005efd0a8a8c65763e74
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/gitrepo')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java index 330c7d911b..9d6aeaba12 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java @@ -751,26 +751,26 @@ public class RepoCommand extends GitCommand<RevCommit> { Config cfg = new Config(); for (Project proj : bareProjects) { String name = proj.path; - String uri = proj.name; + String nameUri = proj.name; cfg.setString("submodule", name, "path", name); //$NON-NLS-1$ //$NON-NLS-2$ - cfg.setString("submodule", name, "url", uri); //$NON-NLS-1$ //$NON-NLS-2$ + cfg.setString("submodule", name, "url", nameUri); //$NON-NLS-1$ //$NON-NLS-2$ // create gitlink DirCacheEntry dcEntry = new DirCacheEntry(name); ObjectId objectId; if (ObjectId.isId(proj.revision)) objectId = ObjectId.fromString(proj.revision); else { - objectId = callback.sha1(uri, proj.revision); + objectId = callback.sha1(nameUri, proj.revision); } if (objectId == null) - throw new RemoteUnavailableException(uri); + throw new RemoteUnavailableException(nameUri); dcEntry.setObjectId(objectId); dcEntry.setFileMode(FileMode.GITLINK); builder.add(dcEntry); for (CopyFile copyfile : proj.copyfiles) { byte[] src = callback.readFile( - uri, proj.revision, copyfile.src); + nameUri, proj.revision, copyfile.src); objectId = inserter.insert(Constants.OBJ_BLOB, src); dcEntry = new DirCacheEntry(copyfile.dest); dcEntry.setObjectId(objectId); |