Improvement in the git plugin

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
Merge pull request #1864 from Stibbons/gsemet_push_git_plugin

Improvement in the git plugin