Skip to content

Commit

Permalink
Allow users to answer questions asked by ssh when git is called
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Aug 15, 2023
1 parent e6ed66f commit c69b375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/publishCommon.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ open OpamProcess.Job.Op
let git_command ?dir ?(verbose=false) args =
let dir = dir >>| OpamFilename.Dir.to_string in
OpamProcess.Job.run @@
OpamSystem.make_command ~verbose ?dir "git" args @@> fun r ->
OpamSystem.make_command ~verbose ~allow_stdin:true ?dir "git" args @@> fun r ->
OpamSystem.raise_on_process_error r;
Done ()

let git_query ?dir args =
let dir = dir >>| OpamFilename.Dir.to_string in
OpamProcess.Job.run @@
OpamSystem.make_command ~verbose:false ?dir "git" args @@> fun r ->
OpamSystem.make_command ~verbose:false ~allow_stdin:true ?dir "git" args @@> fun r ->
if OpamProcess.is_success r then
match r.OpamProcess.r_stdout with
| r :: _ -> Done (Some r)
Expand Down

0 comments on commit c69b375

Please sign in to comment.