For now do not allow operations in other branches.

For now, do not allow operations in other branches, as this may cause
some bugs. We should create a parameter to toggle this.

Change-Id: I2756c520c418e7288c5095d92f9706397ded22d4