Skip to content

Commit

Permalink
Merge pull request #223 from ajoberstar/lsremote
Browse files Browse the repository at this point in the history
Configure credentials on lsremote
  • Loading branch information
ajoberstar authored Apr 14, 2018
2 parents ec77fb2 + c38967d commit 8041440
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import java.util.concurrent.Callable

import org.ajoberstar.grgit.Ref
import org.ajoberstar.grgit.Repository
import org.ajoberstar.grgit.auth.TransportOpUtil
import org.ajoberstar.grgit.internal.Operation
import org.eclipse.jgit.api.LsRemoteCommand
import org.eclipse.jgit.lib.ObjectId
Expand All @@ -30,6 +31,7 @@ class LsRemoteOp implements Callable<Map<Ref, String>> {

Map<Ref, String> call() {
LsRemoteCommand cmd = repo.jgit.lsRemote()
TransportOpUtil.configure(cmd, repo.credentials)
cmd.remote = remote
cmd.heads = heads
cmd.tags = tags
Expand Down

0 comments on commit 8041440

Please sign in to comment.