Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Fix a few more warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
JBYoshi committed May 8, 2016
1 parent 7b1eeaf commit 7167d2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/jbyoshi/gitupdate/processor/Push.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,20 @@ public void registerTasks(Repository repo, Git git, Task root) throws Exception
for (Map.Entry<String, Collection<String>> remote : branchList.asMap().entrySet()) {
me.newChild(remote.getKey(), report -> {
try {
process(repo, git, remote.getKey(), Constants.R_REMOTES + remote.getKey() + "/", remote.getValue(),
report);
process(repo, git, remote.getKey(), remote.getValue(), report);
} catch (Exception e) {
report.newErrorChild(e);
}
});
}
}

private static void process(Repository repo, Git git, String remote, String fullRemote, Collection<String> branches,
private static void process(Repository repo, Git git, String remote, Collection<String> branches,
Report report) throws Exception {
// Figure out if anything needs to be pushed.
Map<String, ObjectId> oldIds = new HashMap<>();
boolean canPush = false;
for (Iterator<String> it = branches.iterator(); it.hasNext();) {
String branch = it.next();
for (String branch : branches) {
BranchConfig config = new BranchConfig(repo.getConfig(), branch);
ObjectId target = repo.getRef(branch).getObjectId();

Expand Down

0 comments on commit 7167d2d

Please sign in to comment.