Here is a PR for #43.
It's a work in progress (it needs testing), but i want to show you where I was going as soon as possible.
There is 2 new properties :
wagon.git.enable.shallow.fetch : to only retrieve the head of a branch
wagon.git.permanent.root : to use a well-known root directory (one not
temporary) for git clones
remove unused import (i have to remove my save-action on my eclipse workstation to avoid formatting the existing code, i forgot about those, sorry)
reverse the shallow flag use
the permanent flag is remove and the check is made in the method, you're right, it's cleaner (i only check for the path to end with .git for a git repository)
(I'll squash the commits once we agree on the code =P)
Here is a PR for #43. It's a work in progress (it needs testing), but i want to show you where I was going as soon as possible. There is 2 new properties :