richfitz / drat.builder

Build tools for a drat
Other
17 stars 2 forks source link

switch from https to ssh #20

Open joethorley opened 4 years ago

joethorley commented 4 years ago

When I try and use drat.builder with a private repository I get the following error which is fixed by switching from https to ssh

*** [fetch] poissonconsulting/poisreport
Error in call_system(Sys_which("git"), args, ...) : Running command:
  '/usr/bin/git' clone --mirror -- https://github.com/poissonconsulting/poisreport.git packages_src/poissonconsulting/poisreport
had status 128
Program output:
------------------------------------------------------------------------------------
Cloning into bare repository 'packages_src/poissonconsulting/poisreport'...
error: cannot run rpostback-askpass: No such file or directory
fatal: could not read Username for 'https://github.com': Device not configured
------------------------------------------------------------------------------------
> traceback()
8: stop(paste(msg, collapse = "\n"))
7: call_system(Sys_which("git"), args, ...)
6: call_git(c("clone", opts, "--", url, dest))
5: git_clone(package_github_url(p), dp, "--mirror")
4: fetch_package(packages[p, ])
3: fetch_package_sources(pkgs)
2: drat.builder::build(no_commit = TRUE, drop_history = TRUE) at drat-update.R#27
1: ps_drat_update("~/Code/dratprivate")
joethorley commented 4 years ago

Note it passed all checks on my machine.