Fix #88, allow [tag] in commit message.

The git command used for finding the remote tracking branch is referenced from http://stackoverflow.com/a/9753364.