build-source doesn't currently take a treeish argument. So to reproduce:
git ubuntu clone something
cd something
add a changelog entry and commit it
git checkout pkg/ubuntu/trusty-devel # (say)
git ubuntu build-source ubuntu/devel
This fails because build-source doesn't understand ubuntu/devel and passes it to dpkg-buildpackage, but even if it didn't, it would build the source for pkg/ubuntu/trusty-devel instead of ubuntu/devel.
This isn't a bug, it's a feature request.
build-source doesn't currently take a treeish argument. So to reproduce:
git ubuntu clone something trusty- devel # (say)
cd something
add a changelog entry and commit it
git checkout pkg/ubuntu/
git ubuntu build-source ubuntu/devel
This fails because build-source doesn't understand ubuntu/devel and passes it to dpkg-buildpackage, but even if it didn't, it would build the source for pkg/ubuntu/ trusty- devel instead of ubuntu/devel.