I'm working on Java to show some information from Git repository.I'm using "Runtime.getRuntime().exec" to execute the command.
So when I write
Process process = Runtime.getRuntime().exec("git --git-dir=/home/gh/git/.git --work-tree=/home/gh/git log");
it works perfect
However, I need to get the log information for a specific person, so when I write the following statement, it doesn't display any result
String activeDeveloper = "Carlos Rica";
Process process = Runtime.getRuntime().exec("git --git-dir=/home/ghadeer/git/.git --work-tree=/home/ghadeer/git log --author=" + activeDeveloper);
anyone knows how what is the problem?