Don't hard-code develop as the target branch, make it a global for now.
Fix log output so that it always stops at origin/develop.