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
Merge pull request #6 from nervo/patch-1

Allow slashes in git branche/tag names