Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

No way to specify Auth for SubmoduleUpdateOptions #520

Closed
devonbarrett opened this issue Jul 28, 2017 · 2 comments
Closed

No way to specify Auth for SubmoduleUpdateOptions #520

devonbarrett opened this issue Jul 28, 2017 · 2 comments
Labels

Comments

@devonbarrett
Copy link
Contributor

devonbarrett commented Jul 28, 2017

After encountering:

error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"

while trying to PlainClone a private repo using SSH, the issue was solved by specifying an SSHAgent as part of the CloneOptions options.

However, this option option is not available inside SubmoduleUpdateOptions so attempting to call errors out in the same way:

w, _ := repository.Worktree();
s, _ := w.Submodules();
if err := s.Update(&git.SubmoduleUpdateOptions{
  Init: true,
}); err != nil 
  //err = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
}
@mcuadros mcuadros added the bug label Jul 28, 2017
@mcuadros
Copy link
Contributor

Yep, looks like a bug, we are fixing this ASAP

@devonbarrett
Copy link
Contributor Author

Thanks for the quick fix - works well!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants