I have a remote machine with a program which downloads some source codes from some repos using a only-read svn user for that program. Now is working with svn without human interaction doing thinks like this:
Doing checkouts:
p = Runtime.getRuntime().exec("svn checkout --non-interactive --trust-server-cert --username "+Constants.svnUser+" --password "+Constants.svnPassword+" "+repositoryURL+" ." , null , dir);
Updating code:
p = Runtime.getRuntime().exec("svn update --non-interactive --trust-server-cert --username "+Constants.svnUser+" --password "+Constants.svnPassword+" ", null , dir);
It works perfectly, but now I'm trying to download source code from Git repositories using a read only Git user, and I can't find the way to do the same non interactive behaviour with Git.
Given a Git repo, a git user and a git password, how to init Git and clone, checkout or pull source code without human interaction?
I can't find any info about how to achieve that give these three items.