This should be getting commits between the "master" and the current branch (it can be a local branch) which is the expected behavior. The only problem here is, that it will be pushing the code into master even if you are working on a local branch. I will fix that once you commit this.