Reputation: 2552
Why this Ruby code doesn't work? It's supposed to clone a git repository from a remote server.
pipe = IO.popen( 'git clone [email protected]:/prj/Common/git/MyProject', "w+" )
pipe.puts 'mySecretPassword'
pipe.close_write
Thanks.
Upvotes: 0
Views: 782
Reputation: 1025
I'd use a git wrapper for ruby such as this one. Makes everything simpler https://github.com/libgit2/rugged
Upvotes: 0