in src/main/java/com/googlesource/gerrit/plugins/download/command/FormatPatchCommand.java [35:41]
String getCommand(String url, String ref, String id) {
return "git fetch "
+ QuoteUtil.quote(url)
+ " "
+ ref
+ " && git format-patch -1 --stdout FETCH_HEAD";
}