Allow slashes in git branche/tag names

Using basename function to guess a branch/tag name truncate every slash based name part.

Ex: refs/heads/foo/bar -> bar

This PR simply remove the "refs/heads/" part to guess the name

Ex: refs/heads/foo/bar -> foo/bar