I found that I had to strip the tags, also you should use `splitlines()`, something like this:

```
tags = [l.strip() for l in result['output'].splitlines()]
```

See:

https://github.com/ros-infrastructure/bloom/blob/master/bloom/git.py#L465